summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-06 22:56:20 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-06 22:56:20 +0900
commit7177fd27c852b415c5f0c20dca31d6995bffddb3 (patch)
tree2a364f8df5d02d028185f67f0b2af7bcb3945994 /src
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadmisskey-7177fd27c852b415c5f0c20dca31d6995bffddb3.tar.gz
misskey-7177fd27c852b415c5f0c20dca31d6995bffddb3.tar.bz2
misskey-7177fd27c852b415c5f0c20dca31d6995bffddb3.zip
Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/client/app/config.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/config.ts b/src/client/app/config.ts
index 7a441fdaa7..6813c01273 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 = localStorage.getItem('lang');
+export const lang = localStorage.getItem('lang') || window.lang; // windowは後方互換性のため
export const langs = _LANGS_;
export const locale = JSON.parse(localStorage.getItem('locale'));
export const copyright = _COPYRIGHT_;