From fb991670fe6962899f8839077e24058075d7dc95 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 12 Mar 2025 14:59:45 -0700 Subject: [PATCH] Get electron store working. --- src/main/ipc/ipcMainHandler.user.ts | 4 +--- src/main/store/store.ts | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/ipc/ipcMainHandler.user.ts b/src/main/ipc/ipcMainHandler.user.ts index d06fcf3..a593283 100644 --- a/src/main/ipc/ipcMainHandler.user.ts +++ b/src/main/ipc/ipcMainHandler.user.ts @@ -1,14 +1,12 @@ import { IpcMainEvent } from "electron"; -import Store from "../store/store"; import { User } from "firebase/auth"; -import log from "electron-log/main"; +import Store from "../store/store"; const ipcMainHandleAuthStateChanged = async ( event: IpcMainEvent, user: User | null ) => { Store.set("user", user); - log.log(Store.get("user")); }; export { ipcMainHandleAuthStateChanged }; diff --git a/src/main/store/store.ts b/src/main/store/store.ts index 2c95469..9f9dec9 100644 --- a/src/main/store/store.ts +++ b/src/main/store/store.ts @@ -1,5 +1,6 @@ -import Store from "electron-store"; +// @ts-nocheck +const Store = require("electron-store").default; const store = new Store({ defaults: { filePaths: [],