From 26f2b51eb95d59ed55d1fc0f81a1579e08bd29f3 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 13 Jan 2023 01:50:58 +0100 Subject: [PATCH] Fix Frameless --- src/patcher.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;