Get electron store working.
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import Store from "electron-store";
|
||||
// @ts-nocheck
|
||||
|
||||
const Store = require("electron-store").default;
|
||||
const store = new Store({
|
||||
defaults: {
|
||||
filePaths: [],
|
||||
|
||||
Reference in New Issue
Block a user