From 44859db499f080e3a341f3e7fa5e44611fc2f887 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Fri, 12 Aug 2022 01:46:42 +0200 Subject: Push local state... --- api/client_test/index.html | 149 +++++++++++++++++++++++---------------------- 1 file changed, 76 insertions(+), 73 deletions(-) (limited to 'api/client_test') diff --git a/api/client_test/index.html b/api/client_test/index.html index f58a4bca..c35c14d2 100644 --- a/api/client_test/index.html +++ b/api/client_test/index.html @@ -1,81 +1,84 @@ - - - - Discord Test Client - - - - - - - -
- - - - - - - - - + }, 1000) + + const settings = JSON.parse(localStorage.getItem("UserSettingsStore")); + 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)); + } + + + + + + + + + + \ No newline at end of file -- cgit 1.5.1