aboutsummaryrefslogtreecommitdiff
path: root/src/app/settings.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-06-29 21:27:40 +0200
committerGitHub <noreply@github.com>2022-06-29 21:27:40 +0200
commit0c54139fc9279fd081eb57e62008456585ffd927 (patch)
tree8c2e78470c0945e66895cf13cc231b4b672a5400 /src/app/settings.js
parentd21931a94c20bd37278986185433df60c495250a (diff)
parent4145f882671c5ddde487a456a15dada979ea35c1 (diff)
downloadViper-0c54139fc9279fd081eb57e62008456585ffd927.tar.gz
Viper-0c54139fc9279fd081eb57e62008456585ffd927.zip
Merge branch 'main' into deprecate-nsversiontxt
Diffstat (limited to 'src/app/settings.js')
-rw-r--r--src/app/settings.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/app/settings.js b/src/app/settings.js
index 23b38c9..63b4b99 100644
--- a/src/app/settings.js
+++ b/src/app/settings.js
@@ -3,26 +3,26 @@ var Settings = {
if (state) {
Settings.load();
options.scrollTo(0, 0);
- overlay.classList.add("shown")
- options.classList.add("shown")
+ overlay.classList.add("shown");
+ options.classList.add("shown");
return
} else if (! state) {
if (state != undefined) {
- overlay.classList.remove("shown")
- options.classList.remove("shown")
+ overlay.classList.remove("shown");
+ options.classList.remove("shown");
return
}
}
Settings.load();
options.scrollTo(0, 0);
- overlay.classList.toggle("shown")
- options.classList.toggle("shown")
+ overlay.classList.toggle("shown");
+ options.classList.toggle("shown");
},
apply: () => {
settings = {...settings, ...Settings.get()};
- ipcRenderer.send("savesettings", Settings.get());
+ ipcRenderer.send("save-settings", Settings.get());
},
reloadSwitches: () => {
let switches = document.querySelectorAll(".switch");