fix renamed app.asar detection on Windows (#185)

This commit is contained in:
rushii 2022-10-31 17:47:07 -07:00 committed by GitHub
parent 0fda900ccc
commit 0c25278c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);