Skip to content

Commit

Permalink
Merge pull request #2 from jhonatasrm/security-fixes
Browse files Browse the repository at this point in the history
Security fixes
  • Loading branch information
jhonatasrm authored Jul 23, 2019
2 parents aa90a70 + f8d391a commit 8882c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ for (let element of textElements) {

textElements = document.querySelectorAll('[data-i18n]');
for (let element of textElements) {
element.insertAdjacentHTML('afterbegin', browser.i18n.getMessage(element.dataset.i18n));
element.textContent = browser.i18n.getMessage(element.dataset.i18n);
}

0 comments on commit 8882c34

Please sign in to comment.