Move everything related to store in store.js

This commit is contained in:
Agampreet Singh
2023-06-11 21:15:36 +05:30
parent 15d339d7f9
commit 9d2b63fedb
4 changed files with 106 additions and 96 deletions

View File

@@ -1,6 +1,6 @@
const { Client } = require("@xhayper/discord-rpc");
const { dialog, BrowserWindow } = require("electron");
const store = require("./store");
const { setValue } = require("./store");
const client = new Client({
clientId: "942637872530460742",
@@ -15,7 +15,7 @@ async function rpcError(status) {
});
if (rpcerror === 1) {
store.set("discordrpcstatus", "false");
setValue("discordrpcstatus", "false");
}
}