From 544f76a502e0db63c14b3f4df6d819dc35dfd777 Mon Sep 17 00:00:00 2001 From: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> Date: Wed, 29 May 2024 20:33:15 +0200 Subject: [PATCH] fix: do not set textContent on undefined when no translation was given #2 (#3046) * fix: do not set textContent on undefined when no translation was given --- javascript/localization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/localization.js b/javascript/localization.js index 21b3b3332f..02e4cfba76 100644 --- a/javascript/localization.js +++ b/javascript/localization.js @@ -81,7 +81,7 @@ function refresh_style_localization() { } function refresh_aspect_ratios_label(value) { - label = document.querySelector('#aspect_ratios_accordion div span[data-original-text="Aspect Ratios"]'); + label = document.querySelector('#aspect_ratios_accordion div span'); translation = getTranslation("Aspect Ratios"); if (typeof translation == "undefined") { translation = "Aspect Ratios";