pis #2
@ -29,7 +29,7 @@ async function registerKey(key) { // Posts key to server and listens for respons
|
|||||||
body: JSON.stringify(key)
|
body: JSON.stringify(key)
|
||||||
})
|
})
|
||||||
if (res.JSON['result'] == "ok"){
|
if (res.JSON['result'] == "ok"){
|
||||||
localStorage.setItem("uuid", res.JSON['uuid'])
|
localStorage.setItem("uuid", res.JSON['uuid']);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user