mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-08 15:50:38 -07:00
fix js error at startup
This commit is contained in:
parent
cf08f5b4d2
commit
816390938f
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue