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:
parent
06456cf727
commit
8df80f659a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user