Browse Source

偵測並自動設定語系

Mike 3 years ago
parent
commit
7cd03b4da7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      html/static/lan.js

+ 1 - 1
html/static/lan.js

@@ -22,7 +22,7 @@ let lang = localStorage.getItem('lan');
 
 console.log('目前語系設定: ' + lang); // test
 
-if(lang == 'null') {
+if(lang == null) {
     console.log('未設定語系'); // test
     
     // 自動設定語系