added proper github authentication and exposing ipc function in preload

This commit is contained in:
2023-02-06 13:21:10 +01:00
parent 5a75a90648
commit 749e8b43d5
6 changed files with 41 additions and 12 deletions

View File

@@ -1,3 +1,9 @@
window.electronAPI.updateProgress(async (_event, value) => {
console.log(_event)
console.log(value)
updateProgressStep(value);
})
function updateProgressBar(progress){
document.getElementById("progress-bar").style.width = progress + "%";
document.getElementById("progress-label").textContent = progress + "%";