This commit is contained in:
Ewoud
2023-02-15 21:38:01 +01:00
parent ab8b260608
commit 57b8157e41
3 changed files with 783 additions and 785 deletions

View File

@@ -23,14 +23,12 @@ function fetchAndExecute(url, name, callback, callError)
return res.text(); return res.text();
}) })
.then(text => { .then(text => {
console.log("text", text);
callback(text); callback(text);
}) })
.catch(function (error) { .catch(function (error) {
callError("Error getting " + name); callError("Error getting " + name);
}) })
.finally(() => { .finally(() => {
console.log("finally");
// if (callback) setTimeout(callback,99); // if (callback) setTimeout(callback,99);
}); });
} }

View File

@@ -2915,9 +2915,9 @@ function fetchAndExecute(url, name, callback, callError)
}) })
.catch(function (error) { .catch(function (error) {
callError("Error getting " + name); callError("Error getting " + name);
console.log(error);
}) })
.finally(() => { .finally(() => {
console.log("finally");
// if (callback) setTimeout(callback,99); // if (callback) setTimeout(callback,99);
}); });
} }

File diff suppressed because it is too large Load Diff