potential transparency fix

This commit is contained in:
smartfrigde 2023-08-05 16:47:17 +02:00
parent 8e43e5abcc
commit 40ae41a041
2 changed files with 2 additions and 1 deletions

View file

@ -347,6 +347,7 @@ async function updateModBundle(): Promise<void> {
shelter: "https://armcord.app/placeholder.css", shelter: "https://armcord.app/placeholder.css",
custom: await getConfig("customCssBundle") 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(); let bundle: string = await (await fetch(clientMods[name as keyof typeof clientMods])).text();
fs.writeFileSync(`${distFolder}bundle.js`, bundle, "utf-8"); fs.writeFileSync(`${distFolder}bundle.js`, bundle, "utf-8");
let css: string = await (await fetch(clientModsCss[name as keyof typeof clientModsCss])).text(); let css: string = await (await fetch(clientModsCss[name as keyof typeof clientModsCss])).text();

View file

@ -61,7 +61,7 @@ async function doAfterDefiningTheWindow(): Promise<void> {
mainWindow.webContents.executeJavaScript(`document.body.setAttribute("isMaximized", "");`); mainWindow.webContents.executeJavaScript(`document.body.setAttribute("isMaximized", "");`);
mainWindow.hide(); // please don't flashbang the user mainWindow.hide(); // please don't flashbang the user
} }
if (transparency && process.platform === "win32") { if ((await getConfig("windowStyle")) == "transparency" && process.platform === "win32") {
mainWindow.setBackgroundMaterial("mica"); mainWindow.setBackgroundMaterial("mica");
if ((await getConfig("startMinimized")) == false) { if ((await getConfig("startMinimized")) == false) {
mainWindow.show(); mainWindow.show();