Update frontend JS

This commit is contained in:
octycs 2021-03-24 22:42:44 +01:00
parent 0a124c3e7b
commit 2e83366913

View file

@ -80,7 +80,7 @@ function tracker_onsend(e) {
"/claim",
"name="+window.encodeURI(name)+"&contact="+window.encodeURI(contact),
function(r) {
ui_tracker_send_loading(true);
ui_tracker_send_loading(false);
if (r.status == 200) {
localStorage.setItem(app_key_id + "_last_cid", r.response);
if (save_data) {
@ -253,7 +253,7 @@ function _get_token() {
if (parts.length != 2)
return null
else
token = parts[1];
token = parts[1].replace("-", ":");
if (localStorage.getItem("token") === null) {
return token;