config: make sure recaptcha is hidden when disabled

dependabot/npm_and_yarn/semver-5.7.2
Harvey Tindall 11 months ago
parent 3fa4b01115
commit b5c80e9d27
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -341,6 +341,7 @@
"required": false,
"requires_restart": true,
"type": "bool",
"depends_true": "enabled",
"value": false,
"description": "More reliable, but requires some setup. See jfa-go wiki for more info."
},

@ -56,17 +56,19 @@ export const loadLangSelector = (page: string) => {
localStorage.setItem("timefmt", fmt);
};
const t12 = document.getElementById("lang-12h") as HTMLInputElement;
t12.onchange = () => setTimefmt("12h");
const t24 = document.getElementById("lang-24h") as HTMLInputElement;
t24.onchange = () => setTimefmt("24h");
if (typeof(t12) !== "undefined" && t12 != null) {
t12.onchange = () => setTimefmt("12h");
const t24 = document.getElementById("lang-24h") as HTMLInputElement;
t24.onchange = () => setTimefmt("24h");
const preference = localStorage.getItem("timefmt");
if (preference == "12h") {
t12.checked = true;
t24.checked = false;
} else if (preference == "24h") {
t24.checked = true;
t12.checked = false;
const preference = localStorage.getItem("timefmt");
if (preference == "12h") {
t12.checked = true;
t24.checked = false;
} else if (preference == "24h") {
t24.checked = true;
t12.checked = false;
}
}
}
let queryString = new URLSearchParams(window.location.search);

Loading…
Cancel
Save