Commit 4333ecc4 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #14939 from AUTOMATIC1111/Fix-extranetworks-search-reload

Fix the bugs that search/reload will disappear when using other ExtraNetworks extensions
parents a56125b0 23f03d47
...@@ -625,7 +625,7 @@ function scheduleAfterScriptsCallbacks() { ...@@ -625,7 +625,7 @@ function scheduleAfterScriptsCallbacks() {
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function() {
var mutationObserver = new MutationObserver(function(m) { var mutationObserver = new MutationObserver(function(m) {
if (!executedAfterScripts && if (!executedAfterScripts &&
gradioApp().querySelectorAll("[id$='_extra_search']").length == 8) { gradioApp().querySelectorAll("[id$='_extra_search']").length >= 6) {
executedAfterScripts = true; executedAfterScripts = true;
scheduleAfterScriptsCallbacks(); scheduleAfterScriptsCallbacks();
} }
......
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