diff options
author | Justice Almanzar <superdash993@gmail.com> | 2023-08-10 22:14:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 00:14:50 +0200 |
commit | fa124d8877ff5f9927a6524768774d5e68b888cc (patch) | |
tree | f63474d27c9efa434191eb6171fda483924e4a0a /src/main/patcher.ts | |
parent | 135da2a5f35e89bf04cb9a9b2d03f9bb7e48c65d (diff) | |
download | Vencord-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.ts | 2 |
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; |