Bug 895137 - Declare updateSearchEngine with "let" instead of "function", to fix strict JS warning. r=mak

This commit is contained in:
Daniel Holbert 2013-07-18 17:13:32 -04:00
parent 2fa97fbc1c
commit 544604486a

View File

@ -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.