Commit faa17bf1 authored by Booteille's avatar Booteille

Don't use innerHTML anymore

parent a16babdd
......@@ -8,9 +8,13 @@
"description": "This will be in the store. Must be 132 characters or less."
},
"settingsInstancesListHint": {
"message": "You can find a list of different Invidious instances <a href=\"https://github.com/omarroth/invidious/wiki/Invidious-Instances\" alt=\"Existing instances\">here</a>.",
"message": "You can find a list of different Invidious instances",
"description": "Displays a Hint indicating differents instances exist"
},
"settingsInstancesListHintURLText": {
"message": "here",
"description": "The text of the URL redirecting to instances list."
},
"settingsFormInstanceLabel": {
"message": "Instance:"
},
......@@ -18,7 +22,7 @@
"message": "Activating this option will force the use of Invidious proxy."
},
"settingsFormProxyLabel": {
"message": "Force Proxy<sup>?</sup>:"
"message": "Force Proxy:"
},
"settingsFormAutoplayLabel": {
"message": "Autoplay:"
......
......@@ -8,14 +8,18 @@
"description": "This will be in the store. Must be 132 characters or less."
},
"settingsInstancesListHint": {
"message": "Vous trouverez une liste des différentes instances <a href=\"https://github.com/omarroth/invidious/wiki/Invidious-Instances\" alt=\"Existing instances\">ici</a>.",
"message": "Vous trouverez une liste des différentes instances",
"description": "Displays a Hint indicating differents instances exist"
},
"settingsInstancesListHintURLText": {
"message": "ici",
"description": "The text of the URL redirecting to instances list."
},
"settingsFormInstanceLabel": {
"message": "Instance :"
},
"settingsFormProxyLabel": {
"message": "Forcer l'utilisation du Proxy<sup>?</sup> :"
"message": "Forcer l'utilisation du Proxy :"
},
"settingsFormProxyTitle": {
"message": "Activer cette option forcera l'utilisation du proxy d'Invidious."
......
......@@ -7,7 +7,7 @@ export const insertI18nContentIntoDocument = (document) => {
_.forEach(elements, (el) => {
let messageName = el.getAttribute('data-i18n-content');
el.innerHTML = browser.i18n.getMessage(messageName);
el.innerText = browser.i18n.getMessage(messageName);
});
};
......
......@@ -8,7 +8,7 @@
<body>
<section class="notice notice-info">
<div class="notice-head">
<span data-i18n-content="settingsInstancesListHint"></span>
<span data-i18n-content="settingsInstancesListHint"></span> <a href="https://github.com/omarroth/invidious/wiki/Invidious-Instances" data-i18n-content="settingsInstancesListHintURLText"></a>.
</div>
</section>
<form>
......@@ -18,7 +18,7 @@
<input type="url" id="instance"><br><br>
<label for="local" data-i18n-title="settingsFormProxyTitle">
<span data-i18n-content="settingsFormProxyLabel"></span>
<span data-i18n-content="settingsFormProxyLabel"></span><sup>?</sup>
</label>
<input type="checkbox" name="local" id="local"><br><br>
......
......@@ -83,7 +83,7 @@ function restoreOptions() {
_.forEach(ISO6391.getAllCodes(), (code) => {
let option: HTMLOptionElement = document.createElement("OPTION") as HTMLOptionElement;
option.value = code;
option.innerHTML = ISO6391.getNativeName(code);
option.innerText = ISO6391.getNativeName(code);
element.append(option);
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment