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:
AUTOMATIC1111 2024-02-17 08:51:11 +03:00 committed by GitHub
commit 4333ecc43f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}