aboutsummaryrefslogtreecommitdiff
path: root/src/main/patcher.ts
diff options
context:
space:
mode:
authorJustice Almanzar <superdash993@gmail.com>2023-08-10 22:14:50 +0000
committerGitHub <noreply@github.com>2023-08-11 00:14:50 +0200
commitfa124d8877ff5f9927a6524768774d5e68b888cc (patch)
treef63474d27c9efa434191eb6171fda483924e4a0a /src/main/patcher.ts
parent135da2a5f35e89bf04cb9a9b2d03f9bb7e48c65d (diff)
downloadVencord-fa124d8877ff5f9927a6524768774d5e68b888cc.tar.gz
Vencord-fa124d8877ff5f9927a6524768774d5e68b888cc.tar.bz2
Vencord-fa124d8877ff5f9927a6524768774d5e68b888cc.zip
build: split preload & renderer.css into D. desktop / vesktop (#1629)
Diffstat (limited to 'src/main/patcher.ts')
-rw-r--r--src/main/patcher.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/patcher.ts b/src/main/patcher.ts
index 066cb3d..2259b20 100644
--- a/src/main/patcher.ts
+++ b/src/main/patcher.ts
@@ -71,7 +71,7 @@ if (!IS_VANILLA) {
constructor(options: BrowserWindowConstructorOptions) {
if (options?.webPreferences?.preload && options.title) {
const original = options.webPreferences.preload;
- options.webPreferences.preload = join(__dirname, "preload.js");
+ options.webPreferences.preload = join(__dirname, IS_DISCORD_DESKTOP ? "preload.js" : "vencordDesktopPreload.js");
options.webPreferences.sandbox = false;
if (settings.frameless) {
options.frame = false;