fix: broken updater

This commit is contained in:
NoCrypt 2024-08-16 00:03:10 +07:00
parent 750487f950
commit 033a6185ff

View file

@ -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', () => {