Skip to content

Commit

Permalink
fix: broken updater
Browse files Browse the repository at this point in the history
  • Loading branch information
NoCrypt committed Aug 15, 2024
1 parent 750487f commit 033a618
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions common/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@
// Client IPC listener: update-available, update-downloading, update-downloaded
// Server IPC listener: update, update-download, quit-and-install
IPC.on('update-available', async () => {
if (localStorage.getItem('ignoredVersion') !== await changeLog[0].version) {
$updateModal = true
}
IPC.on('update-available', () => {
changeLog.then((cl)=>{
if (cl[0].version !== localStorage.getItem('ignoredVersion')) {
$updateModal = true
}
})
})
IPC.on('update-downloading', () => {
Expand Down

0 comments on commit 033a618

Please sign in to comment.