diff options
author | The Arcane Brony <myrainbowdash949@gmail.com> | 2021-10-22 09:56:36 +0200 |
---|---|---|
committer | The Arcane Brony <myrainbowdash949@gmail.com> | 2021-11-11 22:25:46 +0100 |
commit | 8df80f659ad343b2782abefaabdbe9f8b684c27e (patch) | |
tree | fd9f4cc248649fd8807ea9166aa882bf62f2094e | |
parent | Global prettierrc, format build.js (diff) | |
download | server-8df80f659ad343b2782abefaabdbe9f8b684c27e.tar.xz |
Attempt to fix auto register
-rw-r--r-- | api/client_test/index.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/api/client_test/index.html b/api/client_test/index.html index 2ff0b469..b19d5f0d 100644 --- a/api/client_test/index.html +++ b/api/client_test/index.html @@ -51,11 +51,12 @@ `{"trace":false,"canary":false,"logGatewayEvents":true,"logOverlayEvents":true,"logAnalyticsEvents":true,"sourceMapsEnabled":false,"axeEnabled":false}` ); - - const token = JSON.parse(localStorage.getItem("token")); - if(token) { - document.querySelector("#logincss").remove(); - } + setInterval(() => { + var token = JSON.parse(localStorage.getItem("token")); + if (token) { + document.querySelector("#logincss").remove(); + } + }, 1000); const settings = JSON.parse(localStorage.getItem("UserSettingsStore")); if (settings && settings.locale.length <= 2) { |