summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-05 14:42:18 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-05 14:42:18 +0900
commit01983da5149b05cfeed727e9047b34fc9ac0d113 (patch)
tree85b08a32b933805dbba1dccf8853f776d41da825 /src
parentUpdate setup.ja.md (diff)
downloadmisskey-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.js2
-rw-r--r--src/client/app/config.ts2
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_;