Fix another silly error
This commit is contained in:
parent
affba1e93b
commit
e2624efb5a
@ -92,7 +92,6 @@ async function register() { // Registers a device by sending POST request to API
|
|||||||
if (res.status == 201) {
|
if (res.status == 201) {
|
||||||
regState = 'success'
|
regState = 'success'
|
||||||
regMsg = 'ok'
|
regMsg = 'ok'
|
||||||
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'
|
||||||
|
Reference in New Issue
Block a user