adding in global store access but not done

This commit is contained in:
talksik
2022-03-18 11:02:56 -04:00
parent 478b785145
commit 18a50cd121
2 changed files with 18 additions and 2 deletions
+8
View File
@@ -49,6 +49,14 @@ app
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);
});
});
// Quit when all windows are closed, except on macOS. There, it's common