Skip to content

Commit

Permalink
fix: do not set textContent on undefined when no translation was given
Browse files Browse the repository at this point in the history
…#2 (lllyasviel#3046)

* fix: do not set textContent on undefined when no translation was given
  • Loading branch information
mashb1t committed May 29, 2024
1 parent bf70815 commit 3ef663c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 3ef663c

Please sign in to comment.