- Fix (regression): Extension locale loading for non-English locales

- Fix: Allow language to be properly set back to a different locale and
  retaining preference (and ensure language changes are available before
  dialog closed)
- Refactoring: array extra/spread operator
- npm: Update devDep (sinon-test)
This commit is contained in:
Brett Zamir
2018-10-20 22:04:39 +08:00
parent 0dc0324104
commit fb9eb80798
13 changed files with 355 additions and 177 deletions

View File

@@ -48,12 +48,12 @@ export const setStrings = function (type, obj, ids) {
switch (type) {
case 'content':
for (let i = 0, node; (node = elem.childNodes[i]); i++) {
[...elem.childNodes].some((node) => {
if (node.nodeType === 3 && node.textContent.trim()) {
node.textContent = val;
break;
return true;
}
}
});
break;
case 'title':