diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-16 05:45:28 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-16 05:45:28 +0900 |
| commit | cada902e7a567575fd250db804e5f8bc05c0cd92 (patch) | |
| tree | 900164bffd2cdb32c91341efea4bee1b51243bd1 /src/web | |
| parent | :v: (diff) | |
| download | sharkey-cada902e7a567575fd250db804e5f8bc05c0cd92.tar.gz sharkey-cada902e7a567575fd250db804e5f8bc05c0cd92.tar.bz2 sharkey-cada902e7a567575fd250db804e5f8bc05c0cd92.zip | |
:v:
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/boot.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 4b7d679429..2ee61745b0 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -36,6 +36,7 @@ let lang = navigator.language.split('-')[0]; if (!/^(en|ja)$/.test(lang)) lang = 'en'; if (localStorage.getItem('lang')) lang = localStorage.getItem('lang'); + if (ENV != 'production') lang = 'ja'; // Detect the user agent const ua = navigator.userAgent.toLowerCase(); @@ -69,7 +70,8 @@ const isDebug = localStorage.getItem('debug') == 'true'; // Whether use raw version script - const raw = localStorage.getItem('useRawScript') == 'true' && isDebug; + const raw = (localStorage.getItem('useRawScript') == 'true' && isDebug) + || ENV != 'production'; // Load an app script // Note: 'async' make it possible to load the script asyncly. |