fix: unable to unload tab with auto tab unloader disabled

This commit is contained in:
Slowlife01
2025-04-05 16:58:49 +07:00
parent f2c6d0a6b9
commit 5333e92c42

View File

@@ -229,7 +229,7 @@
explicitUnloadTabs(tabs, extraArgs = {}) {
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);
}
}