Move content clear to avoid layout flash

pull/4610/head
awsr 2026-01-30 22:20:50 -08:00 committed by GitHub
parent b4919f9960
commit 695e949627
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1197,9 +1197,9 @@ async function updateFolders() {
// if (el.folders.children.length > 0) return;
const res = await authFetch(`${window.api}/browser/folders`);
if (!res || res.status !== 200) return;
el.folders.innerHTML = '';
url = res.url.split('/sdapi')[0].replace('http', 'ws'); // update global url as ws need fqdn
const folders = await res.json();
el.folders.innerHTML = '';
for (const folder of folders) {
const f = new GalleryFolder(folder);
el.folders.appendChild(f);