mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-06 03:18:19 +00:00
fix: unable to unload tab with auto tab unloader disabled
This commit is contained in:
@@ -229,7 +229,7 @@
|
|||||||
|
|
||||||
explicitUnloadTabs(tabs, extraArgs = {}) {
|
explicitUnloadTabs(tabs, extraArgs = {}) {
|
||||||
for (let i = 0; i < tabs.length; i++) {
|
for (let i = 0; i < tabs.length; i++) {
|
||||||
if (this.canUnloadTab(tabs[i], Date.now(), this.intervalUnloader.excludedUrls, true, extraArgs)) {
|
if (this.canUnloadTab(tabs[i], Date.now(), this.intervalUnloader?.excludedUrls || [], true, extraArgs)) {
|
||||||
this.unload(tabs[i], true);
|
this.unload(tabs[i], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user