Commit d1200f16 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Revert "Rely on opts being pre-populated"

This reverts commit bf1f3b8d.
parent bf1f3b8d
......@@ -97,12 +97,19 @@ function galleryImageHandler(e){
}
onUiUpdate(function(){
fullImg_preview = gradioApp().querySelectorAll('img.w-full')
if(fullImg_preview != null){
fullImg_preview.forEach(galleryImageHandler);
}
fullImg_preview = gradioApp().querySelectorAll('img.w-full')
if(fullImg_preview != null){
fullImg_preview.forEach(galleryImageHandler);
}
if(Object.keys(opts).length != 0) return;
json_elem = gradioApp().getElementById('settings_json')
if(json_elem == null) return;
if(Object.keys(opts).length == 0) return;
textarea = json_elem.querySelector('textarea')
jsdata = textarea.value
opts = JSON.parse(jsdata)
if(!window.lightbox_settings_applied){
window.lightbox_settings_applied = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment