summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/browser.js
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-12-23 22:47:45 +0200
committerJustOff <Off.Just.Off@gmail.com>2018-12-23 22:47:45 +0200
commitcb2f0f614362d3e986d585d6d1b4a2eaa20a1365 (patch)
treeb3383073be814a8bffe078e390d5bb53fd4b5e3e /application/palemoon/base/content/browser.js
parent4319edc1a68820d62b9748a53b024cfe1ff9457c (diff)
downloadUXP-cb2f0f614362d3e986d585d6d1b4a2eaa20a1365.tar
UXP-cb2f0f614362d3e986d585d6d1b4a2eaa20a1365.tar.gz
UXP-cb2f0f614362d3e986d585d6d1b4a2eaa20a1365.tar.lz
UXP-cb2f0f614362d3e986d585d6d1b4a2eaa20a1365.tar.xz
UXP-cb2f0f614362d3e986d585d6d1b4a2eaa20a1365.zip
[PALEMOON] Initialize the search service asynchronously from 'about:home' and 'about:newtab'
Diffstat (limited to 'application/palemoon/base/content/browser.js')
-rw-r--r--application/palemoon/base/content/browser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js
index 591d00fbb..8a635e91b 100644
--- a/application/palemoon/base/content/browser.js
+++ b/application/palemoon/base/content/browser.js
@@ -2456,7 +2456,7 @@ function BrowserOnAboutPageLoad(doc) {
docElt.setAttribute("searchEnginePostData", engine.postDataString || "");
docElt.setAttribute("searchEngineURL", engine.searchURL);
}
- updateSearchEngine();
+ Services.search.init(updateSearchEngine);
// Listen for the event that's triggered when the user changes search engine.
// At this point we simply reload about:home to reflect the change.
@@ -2481,7 +2481,7 @@ function BrowserOnAboutPageLoad(doc) {
docElt.setAttribute("searchEnginePostData", engine.postDataString || "");
docElt.setAttribute("searchEngineURL", engine.searchURL);
}
- updateSearchEngine();
+ Services.search.init(updateSearchEngine);
// Listen for the event that's triggered when the user changes search engine.
// At this point we simply reload about:newtab to reflect the change.