Bug 1453480 - Update Preferences to use fluent-dom 0.2.0 API. r=stas

MozReview-Commit-ID: 4CFnjf9VFLz

--HG--
extra : source : a3c36fa7ac0c831c4412652ba1a6a8d57497c63d
This commit is contained in:
Zibi Braniecki 2018-04-12 22:45:02 -07:00
Родитель 2dc52ab911
Коммит 3cdc3d9fef
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -483,7 +483,7 @@ var gSearchResultsPane = {
return null;
}
if (refAttr) {
let attr = msg.attrs.find(a => a.name === refAttr);
let attr = msg.attributes && msg.attributes.find(a => a.name === refAttr);
if (!attr) {
console.error(`Missing search l10n id "${refId}.${refAttr}"`);
return null;

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

@ -39,7 +39,7 @@ add_task(async function() {
Assert.deepEqual(msg, {
value: null,
attrs: [
attributes: [
{name: "label", value: elem.getAttribute("label")}
]
});