Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
shoaibkhandev committed Oct 27, 2020
1 parent 943f2e4 commit 2845ef2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ <h1>Electron Auto Update Example</h1>

ipcRenderer.on('update_available', () => {
ipcRenderer.removeAllListeners('update_available');
version.innerText = 'A new update is available. Downloading now...';
message.innerText = 'A new update is available. Downloading now...';
notification.classList.remove('hidden');
});

ipcRenderer.on('update_downloaded', () => {
ipcRenderer.removeAllListeners('update_downloaded');
version.innerText = 'Update Downloaded. It will be installed on restart. Restart now?';
message.innerText = 'Update Downloaded. It will be installed on restart. Restart now?';
restartButton.classList.remove('hidden');
notification.classList.remove('hidden');
Expand Down

0 comments on commit 2845ef2

Please sign in to comment.