updates
This commit is contained in:
parent
de9aab8195
commit
e611d945ed
|
@ -104,13 +104,12 @@ function init() {
|
|||
, cors: true
|
||||
}).then(function (resp) {
|
||||
return resp.json().then(function (data) {
|
||||
console.log('pair request:');
|
||||
console.log('pair request data:');
|
||||
console.log(data);
|
||||
document.querySelector('body').hidden = false;
|
||||
if (data.error) {
|
||||
document.querySelector('.js-error').hidden = false;
|
||||
document.querySelector('.js-magic-link').innerText = magic;
|
||||
window.alert("Something went wrong. Perhaps an bad or expired link.");
|
||||
document.querySelector('.js-magic-link').innerText = "Something went wrong. Perhaps an bad or expired link.";
|
||||
return;
|
||||
}
|
||||
document.querySelector('.js-magic').hidden = false;
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
},
|
||||
"homepage": "https://git.coolaj86.com/coolaj86/telebit-relay.js",
|
||||
"dependencies": {
|
||||
"@coolaj86/urequest": "^1.3.2",
|
||||
"@coolaj86/urequest": "^1.3.5",
|
||||
"body-parser": "^1.18.3",
|
||||
"cluster-store": "^2.0.8",
|
||||
"connect-cors": "^0.5.6",
|
||||
|
|
Loading…
Reference in New Issue