Fix long loading
This commit is contained in:
1 parent
4f37419701
commit
61f7b082e4
2 files changed
+18
-13
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user