Show mail domain change progress

This commit is contained in:
Johannes Zellner
2025-03-10 11:18:40 +01:00
parent e36f24dc63
commit 2aed64d1c1
3 changed files with 59 additions and 12 deletions
+4 -1
View File
@@ -7,7 +7,7 @@ function create() {
const accessToken = localStorage.token;
return {
async wait(id) {
async wait(id, progressHandler = function () {}) {
while(true) {
let result;
try {
@@ -16,8 +16,11 @@ function create() {
return [e];
}
console.log(result.body)
if (!result.body.active) return [result.body.error, result.body.result];
progressHandler(result.body);
await sleep(2000);
}
},