changed cider-platform from once to on

This commit is contained in:
booploops 2021-12-17 19:24:18 -08:00
parent 1325ec0980
commit 4b906511a6
2 changed files with 2 additions and 2 deletions

View file

@ -258,7 +258,7 @@ const app = new Vue({
this.mk.authorize()
this.$forceUpdate()
this.mk.privateEnabled = true
// this.platform = ipcRenderer.sendSync('cider-platform');
this.platform = ipcRenderer.sendSync('cider-platform');
// Set profile name
this.chrome.userinfo = await this.mkapi("personalSocialProfile", false, "")
// API Fallback

View file

@ -86,7 +86,7 @@ const CiderBase = {
mainWindowState.manage(win);
// IPC stuff (senders)
ipcMain.once("cider-platform", (event) => {
ipcMain.on("cider-platform", (event) => {
event.returnValue = process.platform
})