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
…lllyasviel#2 (lllyasviel#3046)

* fix: do not set textContent on undefined when no translation was given
  • Loading branch information
mashb1t authored and csokun committed Jun 16, 2024
1 parent 3e17ecf commit 544f76a
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 544f76a

Please sign in to comment.