diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-05 14:42:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-05 14:42:18 +0900 |
| commit | 01983da5149b05cfeed727e9047b34fc9ac0d113 (patch) | |
| tree | 85b08a32b933805dbba1dccf8853f776d41da825 /src | |
| parent | Update setup.ja.md (diff) | |
| download | misskey-01983da5149b05cfeed727e9047b34fc9ac0d113.tar.gz misskey-01983da5149b05cfeed727e9047b34fc9ac0d113.tar.bz2 misskey-01983da5149b05cfeed727e9047b34fc9ac0d113.zip | |
[Client] Use localStorage instead of window
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/boot.js | 2 | ||||
| -rw-r--r-- | src/client/app/config.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/boot.js b/src/client/app/boot.js index 612311ef51..f67c074c14 100644 --- a/src/client/app/boot.js +++ b/src/client/app/boot.js @@ -66,7 +66,7 @@ lang = settings.device.lang; } - window.lang = lang; + localStorage.setItem('lang', lang); //#endregion //#region Fetch locale data diff --git a/src/client/app/config.ts b/src/client/app/config.ts index 99ee769f25..7a441fdaa7 100644 --- a/src/client/app/config.ts +++ b/src/client/app/config.ts @@ -12,7 +12,7 @@ export const hostname = address.hostname; export const url = address.origin; export const apiUrl = url + '/api'; export const wsUrl = url.replace('http://', 'ws://').replace('https://', 'wss://') + '/streaming'; -export const lang = window.lang; +export const lang = localStorage.getItem('lang'); export const langs = _LANGS_; export const locale = JSON.parse(localStorage.getItem('locale')); export const copyright = _COPYRIGHT_; |