mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
potential transparency fix
This commit is contained in:
parent
8e43e5abcc
commit
40ae41a041
2 changed files with 2 additions and 1 deletions
|
@ -347,6 +347,7 @@ async function updateModBundle(): Promise<void> {
|
|||
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();
|
||||
|
|
|
@ -61,7 +61,7 @@ async function doAfterDefiningTheWindow(): Promise<void> {
|
|||
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();
|
||||
|
|
Loading…
Reference in a new issue