var canvasEditions = []; (async function () { const cache = await caches.open('pdf'); var responsePdf = await cache.match(url); var pdfBlob = await responsePdf.blob(); url = await URL.createObjectURL(pdfBlob); var dataTransfer = new DataTransfer(); dataTransfer.items.add(new File([pdfBlob], filename, { type: 'application/pdf' })); document.getElementById('input_pdf').files = dataTransfer.files; fabric.Textbox.prototype._wordJoiners = /[]/; // Loaded via