mirror of
https://github.com/vladmandic/automatic
synced 2026-09-02 02:50:47 +02:00
Linting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user