mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 23:59:59 +02:00
Refactor ZenTabUnloader to exclude tabs with sound playing or marked for ignore
This commit is contained in:
parent
65782ccf69
commit
3681f71acf
1 changed files with 2 additions and 1 deletions
|
@ -220,7 +220,8 @@
|
|||
canUnloadTab(tab, currentTimestamp, excludedUrls) {
|
||||
if (tab.pinned || tab.selected || tab.multiselected
|
||||
|| tab.hasAttribute("busy") || tab.hasAttribute("pending")
|
||||
|| !tab.linkedPanel || tab.splitView || tab.attention
|
||||
|| !tab.linkedPanel || tab.splitView || tab.attention || tab.soundPlaying
|
||||
|| tab.zenIgnoreUnload
|
||||
|| excludedUrls.some(url => url.test(tab.linkedBrowser.currentURI.spec))) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue