diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index a55d36b94..a69e3290b 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -360,10 +360,9 @@ localStorage.sidebar = value; // nav element is not available on the first render + const navElement = document.getElementsByTagName('nav')[0]; if ($mobile) { - const navElement = document.getElementsByTagName('nav')[0]; - if (!value) { navElement.style['-webkit-app-region'] = 'drag'; } else {