aboutsummaryrefslogtreecommitdiff
path: root/views/script/settings_load.js
diff options
context:
space:
mode:
authorMinteck <46352972+Minteck@users.noreply.github.com>2021-07-14 01:12:14 +0200
committerMinteck <46352972+Minteck@users.noreply.github.com>2021-07-14 01:12:14 +0200
commit0f0e3de9353c06dfaabc00682b4c2fd9c5f48924 (patch)
treeaef2474d205aea7865f7c9a4f17ffee474bbe7bc /views/script/settings_load.js
parentc3b756f987ffd8ca981c1e6f23435c74aad36aea (diff)
downloadkartik-client-0f0e3de9353c06dfaabc00682b4c2fd9c5f48924.tar.gz
kartik-client-0f0e3de9353c06dfaabc00682b4c2fd9c5f48924.tar.bz2
kartik-client-0f0e3de9353c06dfaabc00682b4c2fd9c5f48924.zip
Kartik Fox Nest!
Diffstat (limited to 'views/script/settings_load.js')
-rw-r--r--views/script/settings_load.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/script/settings_load.js b/views/script/settings_load.js
index 030a7dd..b15b125 100644
--- a/views/script/settings_load.js
+++ b/views/script/settings_load.js
@@ -9,7 +9,7 @@ if (require('@electron/remote').getCurrentWindow().music) {
document.getElementById("setting-music").innerText = "0";
}
-if (require('fs').readFileSync(homedir + "/.kartik/config/voice.txt").toString() === "2") {
+if (currentNest.config.voice === true) {
document.getElementById("setting-voice").innerText = "1";
} else {
document.getElementById("setting-voice").innerText = "0";