mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-31 05:19:59 +00:00
fix js error at startup
This commit is contained in:
@@ -17,7 +17,10 @@ onOptionsChanged(function() {
|
||||
if (div.classList.contains('gradio-checkbox')) span = div.querySelector('label span');
|
||||
else if (div.classList.contains('gradio-checkboxgroup')) span = div.querySelector('span').firstChild;
|
||||
else if (div.classList.contains('gradio-radio')) span = div.querySelector('span').firstChild;
|
||||
else span = div.querySelector('label span').firstChild;
|
||||
else {
|
||||
var elem = div.querySelector('label span');
|
||||
if(elem) span = elem.firstChild;
|
||||
}
|
||||
|
||||
if (!span) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user