mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
innerText replaced with textContent to insert the translation
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user