refac: drag region

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

View File

@ -360,6 +360,8 @@
localStorage.sidebar = value;
// nav element is not available on the first render
if ($mobile) {
const navElement = document.getElementsByTagName('nav')[0];
if (!value) {
@ -367,6 +369,9 @@
} else {
navElement.style['-webkit-app-region'] = 'no-drag';
}
} else {
navElement.style['-webkit-app-region'] = 'drag';
}
});
await initChannels();