diff --git a/main.js b/main.js index 0f057fa..ea719ef 100644 --- a/main.js +++ b/main.js @@ -1482,14 +1482,14 @@ function queryremote(params) xhr.onerror = function() { - return reject("XMLHttpRequest error"); + reject("XMLHttpRequest error"); } xhr.onload = function() { if (xhr.status !== 200) { - return reject("Http status " + xhr.status); + reject("Http status " + xhr.status); } else { @@ -1498,11 +1498,11 @@ function queryremote(params) { if (decrypted.startsWith("error: ")) { - return reject(decrypted); + reject(decrypted); } else { - return resolve(decrypted); + resolve(decrypted); } }); }