// Gallery "add media" page: uses the shared uploads.js engine to upload files // to /api/uploads/ (kind=media). On submit the pending uploads are moved into // the project's gallery. (function () { const pending = JSON.parse( (document.getElementById('packs-pending-uploads') || { textContent: '[]' }).textContent ); PacksUploads.init({ pending: pending }); })();