Update script.js

This commit is contained in:
bluelovers 2024-06-07 18:17:04 +08:00 committed by GitHub
parent b8923bb65d
commit f4de37ee90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,7 +113,7 @@ var executedOnLoaded = false;
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function() {
var mutationObserver = new MutationObserver(function(m) { var mutationObserver = new MutationObserver(function(m) {
const firstOnLoaded = !executedOnLoaded && gradioApp().querySelector('#txt2img_prompt') const firstOnLoaded = !executedOnLoaded && gradioApp().querySelector('#txt2img_prompt');
if (firstOnLoaded) { if (firstOnLoaded) {
executedOnLoaded = true; executedOnLoaded = true;
executeCallbacks(uiLoadedCallbacks); executeCallbacks(uiLoadedCallbacks);