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