formatting + V's suggested changes to title prefix pruning
This commit is contained in:
parent
3ff6e45ff9
commit
903731723d
1 changed files with 5 additions and 4 deletions
|
@ -445,9 +445,10 @@ 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) => {
|
||||
let cleanedTitle = title.replace(/^\(\d+\)\s*|•\s/, '');
|
||||
mainWin.setTitle(cleanedTitle);
|
||||
else if (Settings.store.appBadge)
|
||||
mainWin.webContents.on("page-title-updated", (_, title) => {
|
||||
title = title.replace(/^\(\d+\)\s*|•\s/, "");
|
||||
mainWin.setTitle(title);
|
||||
});
|
||||
|
||||
initWindowBoundsListeners(win);
|
||||
|
|
Loading…
Reference in a new issue