Update frontend JS
This commit is contained in:
parent
0a124c3e7b
commit
2e83366913
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ function tracker_onsend(e) {
|
||||||
"/claim",
|
"/claim",
|
||||||
"name="+window.encodeURI(name)+"&contact="+window.encodeURI(contact),
|
"name="+window.encodeURI(name)+"&contact="+window.encodeURI(contact),
|
||||||
function(r) {
|
function(r) {
|
||||||
ui_tracker_send_loading(true);
|
ui_tracker_send_loading(false);
|
||||||
if (r.status == 200) {
|
if (r.status == 200) {
|
||||||
localStorage.setItem(app_key_id + "_last_cid", r.response);
|
localStorage.setItem(app_key_id + "_last_cid", r.response);
|
||||||
if (save_data) {
|
if (save_data) {
|
||||||
|
@ -253,7 +253,7 @@ function _get_token() {
|
||||||
if (parts.length != 2)
|
if (parts.length != 2)
|
||||||
return null
|
return null
|
||||||
else
|
else
|
||||||
token = parts[1];
|
token = parts[1].replace("-", ":");
|
||||||
|
|
||||||
if (localStorage.getItem("token") === null) {
|
if (localStorage.getItem("token") === null) {
|
||||||
return token;
|
return token;
|
||||||
|
|
Loading…
Reference in a new issue