This commit is contained in:
awsr
2026-01-02 18:35:18 -08:00
parent 5acbab5e61
commit 6d4b79659e
5 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ async function getUIDefaults() {
const btn = gradioApp().getElementById('ui_defaults_view');
if (!btn) return;
const intersectionObserver = new IntersectionObserver((entries) => {
if (entries[0].intersectionRatio <= 0) { }
if (entries[0].intersectionRatio <= 0) { /* Pass */ }
if (entries[0].intersectionRatio > 0) btn.click();
});
intersectionObserver.observe(btn); // monitor visibility of tab