Combine title pruning operation
This commit is contained in:
parent
903731723d
commit
075af176da
1 changed files with 1 additions and 2 deletions
|
@ -447,8 +447,7 @@ function createMainWindow() {
|
|||
if (Settings.store.staticTitle) win.on("page-title-updated", e => e.preventDefault());
|
||||
else if (Settings.store.appBadge)
|
||||
mainWin.webContents.on("page-title-updated", (_, title) => {
|
||||
title = title.replace(/^\(\d+\)\s*|•\s/, "");
|
||||
mainWin.setTitle(title);
|
||||
mainWin.setTitle(title.replace(/^\(\d+\)\s*|•\s/, ""));
|
||||
});
|
||||
|
||||
initWindowBoundsListeners(win);
|
||||
|
|
Loading…
Reference in a new issue