From 5340ea7ba0b2eed5acd18c1c48715542a05ac248 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 31 Mar 2023 05:59:45 +0200 Subject: Add back window transparency with temporary unsafe settings key --- src/patcher.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/patcher.ts') diff --git a/src/patcher.ts b/src/patcher.ts index 89c636c..b1f47b0 100644 --- a/src/patcher.ts +++ b/src/patcher.ts @@ -83,12 +83,11 @@ if (!process.argv.includes("--vanilla")) { delete options.frame; } - /* This causes electron to freeze / white screen for some people - if (settings.transparent) { + // This causes electron to freeze / white screen for some people + if ((settings as any).transparentUNSAFE_USE_AT_OWN_RISK) { options.transparent = true; options.backgroundColor = "#00000000"; } - */ process.env.DISCORD_PRELOAD = original; -- cgit