summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-13 01:11:36 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-13 01:11:36 +0900
commit6f2953f3a71e2e579575ee6333cfc1afdfc726e1 (patch)
tree6cde9f4a05354b07204b2eda72e0c0975a2d222a /src
parent[Client] Improve post-form widget (diff)
downloadsharkey-6f2953f3a71e2e579575ee6333cfc1afdfc726e1.tar.gz
sharkey-6f2953f3a71e2e579575ee6333cfc1afdfc726e1.tar.bz2
sharkey-6f2953f3a71e2e579575ee6333cfc1afdfc726e1.zip
[Client] Clear cached locale data when shouldFlush is true
Diffstat (limited to 'src')
-rw-r--r--src/client/app/boot.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/app/boot.js b/src/client/app/boot.js
index 59278ff23c..c35620dc5a 100644
--- a/src/client/app/boot.js
+++ b/src/client/app/boot.js
@@ -146,6 +146,8 @@
function refresh() {
localStorage.setItem('shouldFlush', 'false');
+ localStorage.removeItem('locale');
+
// Random
localStorage.setItem('salt', Math.random().toString().substr(2, 8));