organizing things and cracking problem with the polyfills i think?

This commit is contained in:
talksik
2022-03-18 11:40:53 -04:00
parent 18a50cd121
commit e66166af29
8 changed files with 87 additions and 37 deletions
+5 -3
View File
@@ -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