This commit is contained in:
AJ ONeal 2018-07-08 03:02:09 +00:00
parent de9aab8195
commit e611d945ed
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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",