Fix settings.js bug
This commit is contained in:
parent
259a7a0db0
commit
8c572c2eaa
@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user