add processVideo env

This commit is contained in:
waveringana 2025-05-11 19:16:02 -04:00
parent 3605a3f3a5
commit 170479b585
8 changed files with 89 additions and 27 deletions

View file

@ -24,7 +24,10 @@ class FileUploader {
this.dropArea = document.getElementById('dropArea');
this.gallery = document.getElementById('gallery');
this.setupEventListeners();
this.setupProgressUpdates(); // SSE logic for transcoding
// Only set up SSE if we're processing videos
if (document.body.dataset.processVideo === 'true') {
this.setupProgressUpdates();
}
}
setupEventListeners() {