From 052ef80e061953272821bd23d97a8a242b37ae6e Mon Sep 17 00:00:00 2001 From: smartfrigde <37928912+smartfrigde@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:21:45 +0200 Subject: [PATCH] fix: ping counter in page title --- src/window.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.ts b/src/window.ts index 3153f15..4b891a4 100644 --- a/src/window.ts +++ b/src/window.ts @@ -183,7 +183,7 @@ async function doAfterDefiningTheWindow(): Promise { if (!title.endsWith(armCordSuffix)) { e.preventDefault(); await mainWindow.webContents.executeJavaScript( - `document.title = '${(title.split(" | ")[1] ?? title) + armCordSuffix}'` + `document.title = '${title.replace("Discord |", "") + armCordSuffix}'` ); } });