organizing things and cracking problem with the polyfills i think?
This commit is contained in:
@@ -45,18 +45,20 @@ app
|
||||
.whenReady()
|
||||
.then(createWindow)
|
||||
.then(() => {
|
||||
// activate login
|
||||
ipcMain.on(Channels.ACTIVATE_LOG_IN, async (event, arg) => {
|
||||
console.log("initiating log in");
|
||||
await handleLogin();
|
||||
});
|
||||
|
||||
// IPC listener
|
||||
ipcMain.on("electron-store-get", async (event, val) => {
|
||||
event.returnValue = store.get(val);
|
||||
});
|
||||
ipcMain.on("electron-store-set", async (event, key, val) => {
|
||||
store.set(key, val);
|
||||
});
|
||||
ipcMain.handle("electron-store-get", async (event, val) => {
|
||||
const result = await store.get(val);
|
||||
return result;
|
||||
});
|
||||
});
|
||||
|
||||
// Quit when all windows are closed, except on macOS. There, it's common
|
||||
|
||||
Reference in New Issue
Block a user