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;
}
/* 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;