mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
fix: window title fix
This commit is contained in:
parent
052ef80e06
commit
a532cb9a72
1 changed files with 9 additions and 10 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue