From 0c069e5b3f7be5a4f6f0d11308458a1a417ee795 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:16:26 -0800 Subject: [PATCH] UI: remove obsolete js event --- js/main.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/js/main.js b/js/main.js index 997701f5..fd2fe758 100644 --- a/js/main.js +++ b/js/main.js @@ -463,18 +463,6 @@ new ResizeObserver(updateCssProperties).observe(document.querySelector("#chat-in // Handle changes in window size window.addEventListener("resize", updateCssProperties); -//------------------------------------------------ -// Keep track of the display width to position the past -// chats dropdown on desktop -//------------------------------------------------ -function updateDocumentWidth() { - var updatedWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; - document.documentElement.style.setProperty("--document-width", updatedWidth + "px"); -} - -updateDocumentWidth(); -window.addEventListener("resize", updateDocumentWidth); - //------------------------------------------------ // Focus on the rename text area when it becomes visible //------------------------------------------------