fix: replace truncated jszip.min.js with complete bundle

This commit is contained in:
2026-08-23 11:30:33 -07:00
parent 13ccc6ca63
commit fe670fdbec
3 changed files with 12 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
emmy/
+10 -2
View File
@@ -29,6 +29,13 @@ document.addEventListener('DOMContentLoaded', async () => {
initDOMElements();
setupEventListeners();
initDatePresets();
if (window.JSZip || typeof JSZip !== 'undefined') {
log('Zip compression engine initialized (JSZip v3.10.1).', 'info');
} else {
log('Warning: JSZip library not detected on page load.', 'warn');
}
await checkSessionAndDiscoverStudents();
});
@@ -652,14 +659,15 @@ async function fetchMediaBlob(url) {
// -------------------------------------------------------------
async function buildAndDownloadZip(studentProfile) {
if (typeof JSZip === 'undefined') {
const JSZipClass = window.JSZip || (typeof JSZip !== 'undefined' ? JSZip : null);
if (!JSZipClass) {
throw new Error('JSZip library is not loaded.');
}
updateProgress(88, 'Generating ZIP package...');
log('Packaging media and manifests into ZIP archive...', 'info');
const zip = new JSZip();
const zip = new JSZipClass();
const childName = sanitizeFilename(`${studentProfile.first_name || 'Child'}_${studentProfile.last_name || ''}`).trim() || 'Brightwheel_Archive';
const rootFolder = zip.folder(childName);
+1 -2
View File
File diff suppressed because one or more lines are too long