1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Attempt to fix auto register

This commit is contained in:
The Arcane Brony 2021-10-22 09:56:36 +02:00
parent 06456cf727
commit 8df80f659a

View File

@ -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) {