mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 01:27:30 +09:00
[PALEMOON] Initialize the search service asynchronously from 'about:home' and 'about:newtab'
This commit is contained in:
parent
4294fe3e81
commit
689d0a55cd
1 changed files with 2 additions and 2 deletions
|
|
@ -2456,7 +2456,7 @@ function BrowserOnAboutPageLoad(doc) {
|
||||||
docElt.setAttribute("searchEnginePostData", engine.postDataString || "");
|
docElt.setAttribute("searchEnginePostData", engine.postDataString || "");
|
||||||
docElt.setAttribute("searchEngineURL", engine.searchURL);
|
docElt.setAttribute("searchEngineURL", engine.searchURL);
|
||||||
}
|
}
|
||||||
updateSearchEngine();
|
Services.search.init(updateSearchEngine);
|
||||||
|
|
||||||
// Listen for the event that's triggered when the user changes search engine.
|
// 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.
|
// 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("searchEnginePostData", engine.postDataString || "");
|
||||||
docElt.setAttribute("searchEngineURL", engine.searchURL);
|
docElt.setAttribute("searchEngineURL", engine.searchURL);
|
||||||
}
|
}
|
||||||
updateSearchEngine();
|
Services.search.init(updateSearchEngine);
|
||||||
|
|
||||||
// Listen for the event that's triggered when the user changes search engine.
|
// 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.
|
// At this point we simply reload about:newtab to reflect the change.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue