fix: window title fix

This commit is contained in:
smartfrigde 2024-04-29 17:03:27 +02:00
parent 052ef80e06
commit a532cb9a72

View file

@ -177,7 +177,7 @@ async function doAfterDefiningTheWindow(): Promise<void> {
mainWindow.setIcon(trayPath); mainWindow.setIcon(trayPath);
} }
}); });
}
mainWindow.webContents.on("page-title-updated", async (e, title) => { mainWindow.webContents.on("page-title-updated", async (e, title) => {
const armCordSuffix = " - ArmCord"; /* identify */ const armCordSuffix = " - ArmCord"; /* identify */
if (!title.endsWith(armCordSuffix)) { if (!title.endsWith(armCordSuffix)) {
@ -187,7 +187,6 @@ async function doAfterDefiningTheWindow(): Promise<void> {
); );
} }
}); });
}
const userDataPath = app.getPath("userData"); const userDataPath = app.getPath("userData");
const themesFolder = `${userDataPath}/themes/`; const themesFolder = `${userDataPath}/themes/`;
if (!fs.existsSync(themesFolder)) { if (!fs.existsSync(themesFolder)) {