Skip to content

Commit

Permalink
fix: ping counter in page title
Browse files Browse the repository at this point in the history
  • Loading branch information
smartfrigde committed Apr 29, 2024
1 parent dbad3ec commit 052ef80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async function doAfterDefiningTheWindow(): Promise<void> {
if (!title.endsWith(armCordSuffix)) {
e.preventDefault();
await mainWindow.webContents.executeJavaScript(
`document.title = '${(title.split(" | ")[1] ?? title) + armCordSuffix}'`
`document.title = '${title.replace("Discord |", "") + armCordSuffix}'`
);
}
});
Expand Down

0 comments on commit 052ef80

Please sign in to comment.