fix: ping counter in page title

This commit is contained in:
smartfrigde 2024-04-29 16:21:45 +02:00
parent dbad3ecb0b
commit 052ef80e06

View file

@ -183,7 +183,7 @@ async function doAfterDefiningTheWindow(): Promise<void> {
if (!title.endsWith(armCordSuffix)) { if (!title.endsWith(armCordSuffix)) {
e.preventDefault(); e.preventDefault();
await mainWindow.webContents.executeJavaScript( await mainWindow.webContents.executeJavaScript(
`document.title = '${(title.split(" | ")[1] ?? title) + armCordSuffix}'` `document.title = '${title.replace("Discord |", "") + armCordSuffix}'`
); );
} }
}); });