disable auto-opening fullscreen panels on mobile

This commit is contained in:
RossAscends
2023-05-18 14:58:23 +09:00
parent b32887a5b1
commit ef0660c425

View File

@@ -423,6 +423,8 @@ function isUrlOrAPIKey(string) {
} }
function OpenNavPanels() { function OpenNavPanels() {
if (deviceInfo.device.type === 'desktop') {
//auto-open R nav if locked and previously open //auto-open R nav if locked and previously open
if (LoadLocalBool("NavLockOn") == true && LoadLocalBool("NavOpened") == true) { if (LoadLocalBool("NavLockOn") == true && LoadLocalBool("NavOpened") == true) {
//console.log("RA -- clicking right nav to open"); //console.log("RA -- clicking right nav to open");
@@ -441,6 +443,7 @@ function OpenNavPanels() {
$("#WIDrawerIcon").click(); $("#WIDrawerIcon").click();
} }
} }
}
// Make the DIV element draggable: // Make the DIV element draggable: