summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/SearchUtils.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/search/SearchUtils.sys.mjs')
-rw-r--r--toolkit/components/search/SearchUtils.sys.mjs12
1 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/components/search/SearchUtils.sys.mjs b/toolkit/components/search/SearchUtils.sys.mjs
index 27c8f8ad03..1262bb28b1 100644
--- a/toolkit/components/search/SearchUtils.sys.mjs
+++ b/toolkit/components/search/SearchUtils.sys.mjs
@@ -434,12 +434,12 @@ XPCOMUtils.defineLazyPreferenceGetter(
false
);
-XPCOMUtils.defineLazyPreferenceGetter(
- SearchUtils,
- "newSearchConfigEnabled",
- "browser.search.newSearchConfig.enabled",
- false
-);
+ChromeUtils.defineLazyGetter(SearchUtils, "newSearchConfigEnabled", () => {
+ return Services.prefs.getBoolPref(
+ "browser.search.newSearchConfig.enabled",
+ false
+ );
+});
// Can't use defineLazyPreferenceGetter because we want the value
// from the default branch