Fix settings.js bug

This commit is contained in:
Fred Boniface 2023-04-10 20:42:19 +01:00
parent 259a7a0db0
commit 8c572c2eaa

View File

@ -91,9 +91,10 @@ async function register() { // Registers a device by sending POST request to API
showDone(); showDone();
hideLoading(); hideLoading();
return; return;
} else if (res.status == 403) } else if (res.status == 403) {
log(`settings.register: Error: Fetch returned: ${res.body['errorCode']}`, "err") log(`settings.register: Error: Fetch returned: ${res.body['errorCode']}`, "err")
document.getElementsByName("eml")[0].placeholder = "Not Authorised"; document.getElementsByName("eml")[0].placeholder = "Not Authorised";
}
} else { } else {
logout() logout()
} }