Skip to content

Commit

Permalink
Merge pull request #14939 from AUTOMATIC1111/Fix-extranetworks-search…
Browse files Browse the repository at this point in the history
…-reload

Fix the bugs that search/reload will disappear when using other ExtraNetworks extensions
  • Loading branch information
AUTOMATIC1111 authored Feb 17, 2024
2 parents a56125b + 23f03d4 commit 4333ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/extraNetworks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4333ecc

Please sign in to comment.