mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-17 04:10:53 +01:00
innerText replaced with textContent to insert the translation
This commit is contained in:
parent
51f45e98cc
commit
2ffca8760f
@ -44,7 +44,7 @@ helpers.insertI18nContentIntoDocument = function (document) {
|
|||||||
if (i18nElement.type === 'button') {
|
if (i18nElement.type === 'button') {
|
||||||
i18nElement.value = chrome.i18n.getMessage(i18nMessageName);
|
i18nElement.value = chrome.i18n.getMessage(i18nMessageName);
|
||||||
} else {
|
} else {
|
||||||
i18nElement.innerText = chrome.i18n.getMessage(i18nMessageName);
|
i18nElement.textContent = chrome.i18n.getMessage(i18nMessageName);
|
||||||
}
|
}
|
||||||
i18nElement.setAttribute('dir', scriptDirection);
|
i18nElement.setAttribute('dir', scriptDirection);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user