mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895137 - Declare updateSearchEngine with "let" instead of "function", to fix strict JS warning. r=mak
This commit is contained in:
parent
2fa97fbc1c
commit
544604486a
@ -2306,11 +2306,11 @@ function BrowserOnAboutPageLoad(doc) {
|
||||
}
|
||||
docElt.setAttribute("snippetsVersion", AboutHomeUtils.snippetsVersion);
|
||||
|
||||
function updateSearchEngine() {
|
||||
let updateSearchEngine = function() {
|
||||
let engine = AboutHomeUtils.defaultSearchEngine;
|
||||
docElt.setAttribute("searchEngineName", engine.name);
|
||||
docElt.setAttribute("searchEngineURL", engine.searchURL);
|
||||
}
|
||||
};
|
||||
updateSearchEngine();
|
||||
|
||||
// Listen for the event that's triggered when the user changes search engine.
|
||||
|
Loading…
Reference in New Issue
Block a user