Skip to content

Commit

Permalink
fix duplicated title
Browse files Browse the repository at this point in the history
  • Loading branch information
Casheeew committed Feb 28, 2024
1 parent 2e9ea19 commit 92af6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/background/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ export class Backend {
return (
isObject(chrome.action) &&
typeof chrome.action.getTitle === 'function' ?
new Promise((resolve) => { chrome.action.getTitle({}, resolve); }) :
new Promise((resolve) => { chrome.action.getTitle({}, (title) => { resolve(title.split(' - ')[0]) }); }) :
Promise.resolve('')
);
}
Expand Down

0 comments on commit 92af6e2

Please sign in to comment.