From f46375cdcadaef545508a0e3b8227624e0256217 Mon Sep 17 00:00:00 2001 From: yofukashino Date: Tue, 12 Nov 2024 04:10:41 +0530 Subject: [PATCH] module updater --- src/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index 0b11c6202..1b3e4338a 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -8,7 +8,7 @@ import { getSetting } from "./ipc/settings"; const electronPath = require.resolve("electron"); const discordPath = join(dirname(require.main!.filename), "app.orig"); const discordPackage = require(join(discordPath, "package.json")); -require.main!.filename = join(discordPath, discordPackage.main); +require.main!.filename = join(discordPath, "..", discordPackage.main); Object.defineProperty(global, "appSettings", { set: (v /* : typeof global.appSettings*/) => {