21 lines
526 B
TypeScript
21 lines
526 B
TypeScript
const icp = require("electron").ipcRenderer;
|
|
|
|
interface Window {
|
|
$: JQuery;
|
|
}
|
|
(window as any).$ = require("jquery");
|
|
|
|
icp.on('progress-update', (event, count) => {
|
|
console.log("Process update to %f", count);
|
|
|
|
$(".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 {} |