From 40ae41a0410bf5cc68cf3ca9825697b8e3cceb37 Mon Sep 17 00:00:00 2001 From: smartfrigde <37928912+smartfrigde@users.noreply.github.com> Date: Sat, 5 Aug 2023 16:47:17 +0200 Subject: [PATCH] potential transparency fix --- src/utils.ts | 1 + src/window.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 10268e1..856ebce 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -347,6 +347,7 @@ async function updateModBundle(): Promise { shelter: "https://armcord.app/placeholder.css", custom: await getConfig("customCssBundle") }; + console.log(clientMods[name as keyof typeof clientMods]); let bundle: string = await (await fetch(clientMods[name as keyof typeof clientMods])).text(); fs.writeFileSync(`${distFolder}bundle.js`, bundle, "utf-8"); let css: string = await (await fetch(clientModsCss[name as keyof typeof clientModsCss])).text(); diff --git a/src/window.ts b/src/window.ts index 8b93049..25633c5 100644 --- a/src/window.ts +++ b/src/window.ts @@ -61,7 +61,7 @@ async function doAfterDefiningTheWindow(): Promise { mainWindow.webContents.executeJavaScript(`document.body.setAttribute("isMaximized", "");`); mainWindow.hide(); // please don't flashbang the user } - if (transparency && process.platform === "win32") { + if ((await getConfig("windowStyle")) == "transparency" && process.platform === "win32") { mainWindow.setBackgroundMaterial("mica"); if ((await getConfig("startMinimized")) == false) { mainWindow.show();