Merge pull request #14939 from AUTOMATIC1111/Fix-extranetworks-search-reload
Fix the bugs that search/reload will disappear when using other ExtraNetworks extensions
This commit is contained in:
commit
4333ecc43f
|
@ -625,7 +625,7 @@ function scheduleAfterScriptsCallbacks() {
|
|||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var mutationObserver = new MutationObserver(function(m) {
|
||||
if (!executedAfterScripts &&
|
||||
gradioApp().querySelectorAll("[id$='_extra_search']").length == 8) {
|
||||
gradioApp().querySelectorAll("[id$='_extra_search']").length >= 6) {
|
||||
executedAfterScripts = true;
|
||||
scheduleAfterScriptsCallbacks();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue