Bug 1593546 - Port bug 1525175: Adapt to changed ID of add-ons search box. rs=bustage-fix

This commit is contained in:
Jorg K 2019-11-03 23:20:17 +01:00
Родитель 535772d77c
Коммит 1cb48fa273
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -59,7 +59,8 @@ var extensionsNeedingRestart = new Set();
.insertBefore(hbox, document.getElementById("categories")); .insertBefore(hbox, document.getElementById("categories"));
// Fix the "Search on addons.mozilla.org" placeholder text in the searchbox. // Fix the "Search on addons.mozilla.org" placeholder text in the searchbox.
let textbox = document.getElementById("header-search"); let browser = document.getElementById("html-view-browser");
let textbox = browser.contentDocument.getElementById("search-addons");
let placeholder = textbox.getAttribute("placeholder"); let placeholder = textbox.getAttribute("placeholder");
placeholder = placeholder.replace( placeholder = placeholder.replace(
"addons.mozilla.org", "addons.mozilla.org",