aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/settings.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-07-31 14:33:31 +0200
committer0neGal <mail@0negal.com>2023-07-31 14:33:31 +0200
commitc1040516db8ec60b6922c989399f0fc43d8ab18a (patch)
tree666535b9885f29744abd3eef092f3f8d588a93d0 /src/app/js/settings.js
parent3a58a8b5c4980a1ac4147adbc0f159c24b41084b (diff)
downloadViper-c1040516db8ec60b6922c989399f0fc43d8ab18a.tar.gz
Viper-c1040516db8ec60b6922c989399f0fc43d8ab18a.zip
window buttons are no longer hidden behind popups
Diffstat (limited to 'src/app/js/settings.js')
-rw-r--r--src/app/js/settings.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/app/js/settings.js b/src/app/js/settings.js
index 20cd4b6..682aa49 100644
--- a/src/app/js/settings.js
+++ b/src/app/js/settings.js
@@ -1,17 +1,22 @@
+
var Settings = {
toggle: (state) => {
+ let settings_btn = document.getElementById("settings");
+
if (state) {
Settings.load();
options.scrollTo(0, 0);
overlay.classList.add("shown");
options.classList.add("shown");
+ settings_btn.classList.add("shown");
- return
+ return;
} else if (! state) {
if (state != undefined) {
overlay.classList.remove("shown");
options.classList.remove("shown");
- return
+ settings_btn.classList.remove("shown");
+ return;
}
}
@@ -19,6 +24,7 @@ var Settings = {
options.scrollTo(0, 0);
overlay.classList.toggle("shown");
options.classList.toggle("shown");
+ settings_btn.classList.toggle("shown");
},
apply: () => {
settings = {...settings, ...Settings.get()};