22 lines
588 B
TypeScript
22 lines
588 B
TypeScript
const icp = require("electron").ipcRenderer;
|
|
|
|
interface Window {
|
|
$: JQuery;
|
|
}
|
|
(window as any).$ = require("jquery");
|
|
|
|
icp.on('progress-update', (event, status, count) => {
|
|
console.log("Process update \"%s\" to %d", status, count);
|
|
|
|
$("#current-status").text(status);
|
|
$(".container-bar .bar").css("width", (count * 100) + "%");
|
|
});
|
|
|
|
icp.on('await-update', (event) => {
|
|
console.log("Received update notification");
|
|
|
|
$(".container-bar .bar").css("width", "100%");
|
|
$("#loading-text").html("Awaiting client update response<br>(User input required)");
|
|
});
|
|
|
|
export {} |