mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
disable auto-opening fullscreen panels on mobile
This commit is contained in:
@@ -423,6 +423,8 @@ function isUrlOrAPIKey(string) {
|
||||
}
|
||||
|
||||
function OpenNavPanels() {
|
||||
|
||||
if (deviceInfo.device.type === 'desktop') {
|
||||
//auto-open R nav if locked and previously open
|
||||
if (LoadLocalBool("NavLockOn") == true && LoadLocalBool("NavOpened") == true) {
|
||||
//console.log("RA -- clicking right nav to open");
|
||||
@@ -441,6 +443,7 @@ function OpenNavPanels() {
|
||||
$("#WIDrawerIcon").click();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Make the DIV element draggable:
|
||||
|
Reference in New Issue
Block a user