aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-01-13 01:50:58 +0100
committerVendicated <vendicated@riseup.net>2023-01-13 01:50:58 +0100
commit26f2b51eb95d59ed55d1fc0f81a1579e08bd29f3 (patch)
tree237acc4bacf32d1081fa997b022fffaf2c80bbdb /src
parent075b0e0970bd0853a3e7c9fc0001da0472928695 (diff)
downloadVencord-26f2b51eb95d59ed55d1fc0f81a1579e08bd29f3.tar.gz
Vencord-26f2b51eb95d59ed55d1fc0f81a1579e08bd29f3.tar.bz2
Vencord-26f2b51eb95d59ed55d1fc0f81a1579e08bd29f3.zip
Fix Frameless
Diffstat (limited to 'src')
-rw-r--r--src/patcher.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/patcher.ts b/src/patcher.ts
index d9eb794..82fc233 100644
--- a/src/patcher.ts
+++ b/src/patcher.ts
@@ -76,7 +76,9 @@ if (!process.argv.includes("--vanilla")) {
const original = options.webPreferences.preload;
options.webPreferences.preload = join(__dirname, "preload.js");
options.webPreferences.sandbox = false;
- options.frame = !settings.frameless;
+ if (settings.frameless) {
+ options.frame = false;
+ }
process.env.DISCORD_PRELOAD = original;