I have to handle kind of large data sets with plain text. I get these data via a cloud as several chunks and use a web worker to process and format the data. In the end, I want to download it to the user's local storage. Therefore, I'm using Blobs and saveAs() defined in FileSaver.js to grant cross-browser compability. I want to send a reference to the final data via URL.createObjectURL and pass the URL's DOMString back to my main thread. This works very well in Chrome or Edge, but IE11 makes some problem. If I console.log the retrieved URL, Chrome and Edge give me the following result:
blob:"reference to website"/"XXXX-XXXXX-XXXXX-XXXX"
But if I do the same in IE11, I get the following result:
blob:"XXXX-XXXXX-XXXXX-XXXX"
As you can see, the reference to my website is missing. I guess this is why I can't download the file in IE11. Does anybody of you know how to fix this issue.
Thanks.
Aucun commentaire:
Enregistrer un commentaire