|
|
@@ -57,7 +57,8 @@ function getCookie(name) { |
|
|
|
var re = new RegExp(name + "=([^;]+)") |
|
|
|
var value = re.exec(document.cookie) |
|
|
|
|
|
|
|
return (value != null) ? unescape(value[1]) : null |
|
|
|
let v = (value != null) ? unescape(value[1]) : null |
|
|
|
return v |
|
|
|
} |
|
|
|
|
|
|
|
function getToken() { |
|
|
@@ -69,7 +70,7 @@ function getToken() { |
|
|
|
}) |
|
|
|
} |
|
|
|
function register(event) { |
|
|
|
this.active = 'loading' |
|
|
|
/* this.active = 'loading' */ |
|
|
|
this.getToken().then(() => {fetch("/register", { |
|
|
|
method: 'POST', |
|
|
|
headers: {'Content-Type': 'application/json', |
|
|
@@ -96,6 +97,7 @@ function getToken() { |
|
|
|
/* console.log(response.json()) */ |
|
|
|
}); |
|
|
|
event.preventDefault(); |
|
|
|
event.stopPropagation(); |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|