Fix compile error + rename ipc back to 'check-for-update'
This commit is contained in:
parent
594c1fabb0
commit
f0790eb363
2 changed files with 4 additions and 4 deletions
|
@ -563,7 +563,7 @@ export class BrowserWindow {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.on('checkupdate', async (_event) => {
|
ipcMain.on('check-for-update', async (_event) => {
|
||||||
const branch = utils.getStoreValue('general.update_branch')
|
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`)
|
let latestbranch = await fetch(`https://circleci.com/api/v1.1/project/gh/ciderapp/Cider/latest/artifacts?branch=${branch}&filter=successful`)
|
||||||
if (latestbranch.status != 200) {
|
if (latestbranch.status != 200) {
|
||||||
|
@ -571,8 +571,8 @@ export class BrowserWindow {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
latestbranch = await latestbranch.json()
|
let latestbranchjson = await latestbranch.json()
|
||||||
let base_url = latestbranch[0].url
|
let base_url = latestbranchjson[0].url
|
||||||
base_url = base_url.substr(0, base_url.lastIndexOf('/'))
|
base_url = base_url.substr(0, base_url.lastIndexOf('/'))
|
||||||
console.log('BaseURL - ', base_url)
|
console.log('BaseURL - ', base_url)
|
||||||
|
|
||||||
|
|
|
@ -3674,7 +3674,7 @@ const app = new Vue({
|
||||||
},
|
},
|
||||||
checkForUpdate() {
|
checkForUpdate() {
|
||||||
console.log('Checking for updates...');
|
console.log('Checking for updates...');
|
||||||
ipcRenderer.send('checkupdate')
|
ipcRenderer.send('check-for-update')
|
||||||
},
|
},
|
||||||
darwinShare(url) {
|
darwinShare(url) {
|
||||||
ipcRenderer.send('share-menu', url)
|
ipcRenderer.send('share-menu', url)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue