fix udpate timer
This commit is contained in:
parent
d6ed63e395
commit
943f6b6d19
|
|
@ -13,9 +13,9 @@ import {JSONRPC} from "/assets/jrpc.js";
|
||||||
$("#panel").hide();
|
$("#panel").hide();
|
||||||
$("#loading").show().text("Installing updates...");
|
$("#loading").show().text("Installing updates...");
|
||||||
try {
|
try {
|
||||||
console.log(await JSONRPC.__invoke("updates::install"));
|
alert(await JSONRPC.__invoke("updates::install"));
|
||||||
} finally {
|
} finally {
|
||||||
setTimeout(() => location.reload(), 10000);
|
setTimeout(() => location.reload(), 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue