[gnome-browser-extension/wip/refactor: 8/8] i18n: fix rendering translation credits.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-browser-extension/wip/refactor: 8/8] i18n: fix rendering translation credits.
- Date: Thu, 8 Sep 2022 16:32:08 +0000 (UTC)
commit 4cf1e117191783b8a5438b252def5bd153cc5ef7
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Thu Sep 8 20:28:47 2022 +0400
i18n: fix rendering translation credits.
Element.innerHTML not works with hidden elements.
extension/include/i18n.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/extension/include/i18n.js b/extension/include/i18n.js
index b32fbd3..0baae75 100644
--- a/extension/include/i18n.js
+++ b/extension/include/i18n.js
@@ -17,7 +17,7 @@ i18n = (() => {
if (data) {
if (element.dataset.i18nHtml) {
- element.innerHtml = m(data[0], data.slice(1));
+ element.insertAdjacentHTML('beforeEnd', m(data[0], data.slice(1)));
}
else {
element.innerText = m(data[0], data.slice(1));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]