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();