This commit is contained in:
Timothy Jaeryang Baek 2025-01-13 21:15:59 -08:00
parent 3a3764bf68
commit 4044d80024

View File

@ -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 {