- Refactoring (minor): Simplify (empty string is falsey)

- Refactoring (minor): Consistent HTML indenting/no-namespacing and title/icon use
- Testing: Add browser bug test with reference to issue
This commit is contained in:
Brett Zamir
2018-05-18 11:35:24 +08:00
parent f768fe2547
commit 89cbab7217
4 changed files with 35 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ function setStrings (type, obj, ids) {
switch (type) {
case 'content':
for (var i = 0, node; (node = elem.childNodes[i]); i++) {
if (node.nodeType === 3 && node.textContent.trim() === '') {
if (node.nodeType === 3 && node.textContent.trim()) {
node.textContent = val;
break;
}