Fix long loading

This commit is contained in:
proitlab committed 2026-07-30 21:34:34 +07:00
1 parent 4f37419701
commit 61f7b082e4
2 files changed
+18 -13

No files matched your search

+1 -1
View File
@@ -505,10 +505,10 @@ function applyState(data) {
// --- File list ---
async function loadFiles() {
const container = document.getElementById('file-list');
try {
const res = await fetch('/api/mp4-files');
const folders = await res.json();
const container = document.getElementById('file-list');
if (!folders || folders.length === 0) {
container.innerHTML = '<div style="font-size:10px;color:var(--text-secondary);text-align:center;padding:20px;">No MP4 files found</div>';
return;