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 //------------------------------------------------