Remove unnecessary code

This commit is contained in:
Ajay Ramachandran
2020-01-09 19:42:18 -05:00
parent d2e1373e2a
commit 8f7eb82b6e

View File

@@ -64,13 +64,6 @@ function localizeHtmlPage() {
let localizedMessage = getLocalizedMessage(obj.innerHTML.toString());
if (localizedMessage) obj.innerHTML = localizedMessage;
// Try on each attribute
let attributes = obj.getAttributeNames();
for (const attribute of attributes) {
localizedMessage = getLocalizedMessage(obj.getAttribute(attribute).toString());
if (localizedMessage) obj.setAttribute(attribute) = localizedMessage;
}
}
}