mirror of
https://github.com/vladmandic/automatic
synced 2026-09-03 19:40:47 +02:00
Linting
This commit is contained in:
@@ -231,7 +231,7 @@ async function handleSeparator(separator) {
|
||||
}
|
||||
|
||||
async function addSeparators() {
|
||||
document.querySelectorAll('.gallery-separator').forEach((node) => el.files.removeChild(node));
|
||||
document.querySelectorAll('.gallery-separator').forEach((node) => { el.files.removeChild(node); });
|
||||
const all = Array.from(el.files.children);
|
||||
let lastDir;
|
||||
let isFirstSeparator = true; // Flag to open the first separator by default
|
||||
@@ -537,7 +537,7 @@ async function wsConnect(socket, timeout = 5000) {
|
||||
|
||||
let loop = 0;
|
||||
while (socket.readyState === WebSocket.CONNECTING && loop < ttl) {
|
||||
await new Promise((resolve) => setTimeout(resolve, intrasleep)); // eslint-disable-line no-promise-executor-return
|
||||
await new Promise((resolve) => { setTimeout(resolve, intrasleep); });
|
||||
loop++;
|
||||
}
|
||||
return isOpened();
|
||||
|
||||
@@ -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