innerText replaced with textContent to insert the translation

This commit is contained in:
nobody 2021-04-12 07:11:34 +02:00
parent 51f45e98cc
commit 2ffca8760f
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ helpers.insertI18nContentIntoDocument = function (document) {
if (i18nElement.type === 'button') {
i18nElement.value = chrome.i18n.getMessage(i18nMessageName);
} else {
i18nElement.innerText = chrome.i18n.getMessage(i18nMessageName);
i18nElement.textContent = chrome.i18n.getMessage(i18nMessageName);
}
i18nElement.setAttribute('dir', scriptDirection);
} else {