summary refs log tree commit diff
path: root/api/client_test/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'api/client_test/index.html')
-rw-r--r--api/client_test/index.html11
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) {