mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
* fix: do not set textContent on undefined when no translation was given
This commit is contained in:
@@ -81,7 +81,7 @@ function refresh_style_localization() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function refresh_aspect_ratios_label(value) {
|
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");
|
translation = getTranslation("Aspect Ratios");
|
||||||
if (typeof translation == "undefined") {
|
if (typeof translation == "undefined") {
|
||||||
translation = "Aspect Ratios";
|
translation = "Aspect Ratios";
|
||||||
|
|||||||
Reference in New Issue
Block a user