aboutsummaryrefslogtreecommitdiff
path: root/views/script/settings_load.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/script/settings_load.js')
-rw-r--r--views/script/settings_load.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/views/script/settings_load.js b/views/script/settings_load.js
index 358f9b1..030a7dd 100644
--- a/views/script/settings_load.js
+++ b/views/script/settings_load.js
@@ -4,15 +4,15 @@ if (require('@electron/remote').getCurrentWindow().music) {
if (location.search === "?credits") {
require('electron').ipcRenderer.send('newmusic', kresources.music['title'].file);
}
- document.getElementById("setting-music").innerText = lang.settings.yes;
+ document.getElementById("setting-music").innerText = "1";
} else {
- document.getElementById("setting-music").innerText = lang.settings.no;
+ document.getElementById("setting-music").innerText = "0";
}
-if (require('@electron/remote').getCurrentWindow().voice) {
- document.getElementById("setting-voice").innerText = lang.settings.yes;
+if (require('fs').readFileSync(homedir + "/.kartik/config/voice.txt").toString() === "2") {
+ document.getElementById("setting-voice").innerText = "1";
} else {
- document.getElementById("setting-voice").innerText = lang.settings.no;
+ document.getElementById("setting-voice").innerText = "0";
}
slang = require('@electron/remote').getCurrentWindow().lp;
@@ -22,4 +22,4 @@ if (Object.keys(langs).includes(slang)) {
document.getElementById("setting-lang").innerText = langs[slang];
} else {
document.getElementById("setting-lang").innerText = slang;
-} \ No newline at end of file
+}