diff --git a/extension/view/popup/js/index.js b/extension/view/popup/js/index.js index e31e173..00b4882 100644 --- a/extension/view/popup/js/index.js +++ b/extension/view/popup/js/index.js @@ -79,12 +79,13 @@ class Mediator { } const setLangs = (selector, langsToSet, value, exclude) => { - selector.innerHTML = ``; + selector.textContent = ""; + selector.add(new Option(browser.i18n.getMessage("languageDefaultOption"), "0")); for (const [code, type] of Object.entries(langsToSet)) { if (code !== exclude) { let name = langs.get(code); if (type === "dev") name += " (Beta)"; - selector.innerHTML += ``; + selector.add(new Option(name, code)); } } selector.value = value;