aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/patcher.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patcher.ts b/src/patcher.ts
index 023c0af..85f493b 100644
--- a/src/patcher.ts
+++ b/src/patcher.ts
@@ -30,7 +30,7 @@ console.log("[Vencord] Starting up...");
const injectorPath = require.main!.filename;
// special discord_arch_electron injection method
-const asarName = injectorPath.endsWith("app.asar/index.js") ? "_app.asar" : "app.asar";
+const asarName = require.main!.path.endsWith("app.asar") ? "_app.asar" : "app.asar";
// The original app.asar
const asarPath = join(dirname(injectorPath), "..", asarName);