revert to async and change ipc name

This commit is contained in:
GamingLiamStudios 2022-02-07 23:23:07 +11:00
parent 21fbc54595
commit 5c102535d9
No known key found for this signature in database
GPG key ID: 3650DE4EAFF62ADD
2 changed files with 2 additions and 2 deletions

View file

@ -563,7 +563,7 @@ export class BrowserWindow {
});
});
ipcMain.on('check-for-update', async (_event) => {
ipcMain.on('checkupdate', async (_event) => {
console.log('Checking for updates')
const branch = utils.getStoreValue('general.update_branch')
let latestbranch = await fetch(`https://circleci.com/api/v1.1/project/gh/ciderapp/Cider/latest/artifacts?branch=${branch}&filter=successful`)

View file

@ -3674,7 +3674,7 @@ const app = new Vue({
},
checkForUpdate() {
console.log('Checking for updates...');
ipcRenderer.send('check-for-update')
ipcRenderer.send('checkupdate')
},
darwinShare(url) {
ipcRenderer.send('share-menu', url)