Add back window transparency with temporary unsafe settings key

This commit is contained in:
Vendicated 2023-03-31 05:59:45 +02:00
parent 84a649a671
commit 5340ea7ba0
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -83,12 +83,11 @@ if (!process.argv.includes("--vanilla")) {
delete options.frame; delete options.frame;
} }
/* This causes electron to freeze / white screen for some people // This causes electron to freeze / white screen for some people
if (settings.transparent) { if ((settings as any).transparentUNSAFE_USE_AT_OWN_RISK) {
options.transparent = true; options.transparent = true;
options.backgroundColor = "#00000000"; options.backgroundColor = "#00000000";
} }
*/
process.env.DISCORD_PRELOAD = original; process.env.DISCORD_PRELOAD = original;