Refactor keyboard shortcuts and tab unloader logic

This commit is contained in:
mauro-balades 2024-10-10 19:01:13 +02:00
parent f7135c0f4a
commit d2296c0523
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 4 additions and 4 deletions

View file

@ -110,6 +110,9 @@
}
intervalListener() {
if (!lazy.zenTabUnloaderEnabled) {
return;
}
const currentTimestamp = Date.now();
const excludedUrls = this.excludedUrls;
for (const tab of this.unloader.tabs) {
@ -172,9 +175,6 @@
}
handleTabOpen(tab) {
if (!lazy.zenTabUnloaderEnabled) {
return;
}
this.updateTabActivity(tab);
}