changed cider-platform from once to on
This commit is contained in:
parent
1325ec0980
commit
4b906511a6
2 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ const app = new Vue({
|
||||||
this.mk.authorize()
|
this.mk.authorize()
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
this.mk.privateEnabled = true
|
this.mk.privateEnabled = true
|
||||||
// this.platform = ipcRenderer.sendSync('cider-platform');
|
this.platform = ipcRenderer.sendSync('cider-platform');
|
||||||
// Set profile name
|
// Set profile name
|
||||||
this.chrome.userinfo = await this.mkapi("personalSocialProfile", false, "")
|
this.chrome.userinfo = await this.mkapi("personalSocialProfile", false, "")
|
||||||
// API Fallback
|
// API Fallback
|
||||||
|
|
|
@ -86,7 +86,7 @@ const CiderBase = {
|
||||||
mainWindowState.manage(win);
|
mainWindowState.manage(win);
|
||||||
|
|
||||||
// IPC stuff (senders)
|
// IPC stuff (senders)
|
||||||
ipcMain.once("cider-platform", (event) => {
|
ipcMain.on("cider-platform", (event) => {
|
||||||
event.returnValue = process.platform
|
event.returnValue = process.platform
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue