Refactor ZenTabUnloader to remove unused code and optimize tab unloading timeout

This commit is contained in:
mauro-balades 2024-09-27 18:12:49 +02:00
parent 1fa61f4349
commit 9ae3de71e7

View file

@ -1,8 +1,5 @@
{
const ZEN_TAB_UNLOADER_PREF = "zen.tab-unloader.enabled";
const ZEN_TAB_UNLOADER_TIMEOUT_PREF = "zen.tab-unloader.timeout";
const lazy = {};
XPCOMUtils.defineLazyPreferenceGetter(
@ -16,7 +13,7 @@
lazy,
"zenTabUnloaderTimeout",
"zen.tab-unloader.timeout-minutes",
5
20
);
XPCOMUtils.defineLazyPreferenceGetter(