Skip to content

Commit

Permalink
[FIX] Further update
Browse files Browse the repository at this point in the history
  • Loading branch information
ykhwong committed May 22, 2020
1 parent 5aa180a commit efa99b8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/client_config.js
Expand Up @@ -58,11 +58,10 @@ $(document).ready(function() {
$("#transTxtBox").val(getHotKey(configData.hotKeys.transparent));
$("#blackTxtBox").val(getHotKey(configData.hotKeys.black));
$("#whiteTxtBox").val(getHotKey(configData.hotKeys.white));
if (typeof(configData.lang) === "undefined") {
$("#langList").val("lang_en");
} else {
$("#langList").val("lang_" + configData.lang);
if (typeof(configData.lang) === "undefined" || !/\S/.test(configData.lang)) {
configData.lang = "en";
}
$("#langList").val("lang_" + configData.lang);
setLangRsc();
});
}
Expand Down Expand Up @@ -121,8 +120,8 @@ $(document).ready(function() {
configPath = appDataPath + "/" + configFile;
if (fs.existsSync(configPath)) {
loadConfig();
setConfig(false);
} else {
// Do nothing
setConfig(false);
}
}
Expand Down

0 comments on commit efa99b8

Please sign in to comment.