From 033a6185ffe1e983e9b401cf76f9f53f24c47442 Mon Sep 17 00:00:00 2001 From: NoCrypt <57245077+NoCrypt@users.noreply.github.com> Date: Fri, 16 Aug 2024 00:03:10 +0700 Subject: [PATCH] fix: broken updater --- common/App.svelte | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/common/App.svelte b/common/App.svelte index fbbc1adf..63d64a13 100644 --- a/common/App.svelte +++ b/common/App.svelte @@ -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', () => {