From 2ffca8760fe2c74ce4c9e18d3b0f22e598760d6b Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 12 Apr 2021 07:11:34 +0200 Subject: [PATCH] innerText replaced with textContent to insert the translation --- modules/internal/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/internal/helpers.js b/modules/internal/helpers.js index 9a8a1c9b..accff837 100644 --- a/modules/internal/helpers.js +++ b/modules/internal/helpers.js @@ -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 {