diff options
author | rushii <33725716+DiamondMiner88@users.noreply.github.com> | 2022-10-31 17:47:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 01:47:07 +0100 |
commit | 0c25278c5923ff7fdc22730557da00601b8cf1d3 (patch) | |
tree | be9d971a005fe97f92073cb73cc9cc70cf30deac /src | |
parent | 0fda900ccc5c7c4560a911b028d53faece620bfc (diff) | |
download | Vencord-0c25278c5923ff7fdc22730557da00601b8cf1d3.tar.gz Vencord-0c25278c5923ff7fdc22730557da00601b8cf1d3.tar.bz2 Vencord-0c25278c5923ff7fdc22730557da00601b8cf1d3.zip |
fix renamed app.asar detection on Windows (#185)
Diffstat (limited to 'src')
-rw-r--r-- | src/patcher.ts | 2 |
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); |