summary refs log tree commit diff
path: root/api/client_test
diff options
context:
space:
mode:
authorSamuel <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 18:39:57 +0200
committerGitHub <noreply@github.com>2021-10-15 18:39:57 +0200
commit1bbf789a7eb54e19459931d3928db1e34472f6d2 (patch)
tree4ac117b32e6b6c8d2c380e552597e6caad70294d /api/client_test
parentMerge pull request #462 from hbjydev/unit-tests-expanded (diff)
parent:sparkles: sticker events (diff)
downloadserver-1bbf789a7eb54e19459931d3928db1e34472f6d2.tar.xz
Merge pull request #455 from fosscord/sticker
Stickers
Diffstat (limited to 'api/client_test')
-rw-r--r--api/client_test/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/client_test/index.html b/api/client_test/index.html

index 20b431b8..5a795253 100644 --- a/api/client_test/index.html +++ b/api/client_test/index.html
@@ -37,6 +37,7 @@ HTML_TIMESTAMP: Date.now(), ALGOLIA_KEY: "aca0d7082e4e63af5ba5917d5e96bed0" }; + GLOBAL_ENV.MEDIA_PROXY_ENDPOINT = location.protocol + "//" + GLOBAL_ENV.CDN_HOST; const localStorage = window.localStorage; // TODO: remote auth // window.GLOBAL_ENV.REMOTE_AUTH_ENDPOINT = window.GLOBAL_ENV.GATEWAY_ENDPOINT.replace(/wss?:/, ""); @@ -105,7 +106,8 @@ } const settings = JSON.parse(localStorage.getItem("UserSettingsStore")); - if (settings && settings.locale === "en") { + if (settings && settings.locale.length <= 2) { + // fix client locale wrong and client not loading at all settings.locale = "en-US"; localStorage.setItem("UserSettingsStore", JSON.stringify(settings)); }