mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 14:39:58 +02:00
Refactor ZenTabUnloader to remove unused code and optimize tab unloading timeout
This commit is contained in:
parent
1fa61f4349
commit
9ae3de71e7
1 changed files with 1 additions and 4 deletions
|
@ -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 = {};
|
const lazy = {};
|
||||||
|
|
||||||
XPCOMUtils.defineLazyPreferenceGetter(
|
XPCOMUtils.defineLazyPreferenceGetter(
|
||||||
|
@ -16,7 +13,7 @@
|
||||||
lazy,
|
lazy,
|
||||||
"zenTabUnloaderTimeout",
|
"zenTabUnloaderTimeout",
|
||||||
"zen.tab-unloader.timeout-minutes",
|
"zen.tab-unloader.timeout-minutes",
|
||||||
5
|
20
|
||||||
);
|
);
|
||||||
|
|
||||||
XPCOMUtils.defineLazyPreferenceGetter(
|
XPCOMUtils.defineLazyPreferenceGetter(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue