Learn, Share, Build

208
October 12, 2017, at 5:49 PM

This part is supposed to download a PDF. It work's perfectly in Chrome and Edge but it doesn't work in Firefox.

var blob = new Blob(
[base64ToArrayBuffer(response.DocumentBytes)],
{ type: "application/pdf" }
);
var link = document.createElement('a');
link.href = window.URL.createObjectURL(blob);
link.download = response.DocumentName;
link.click();

Any idea how to fix this issue without breaking the Chrome/Edge download?

Rent Charter Buses Company
READ ALSO
Learn, Share, Build

Learn, Share, Build

This question already has an answer here:

252
Learn, Share, Build

Learn, Share, Build

You may iterate over these arrays and build the Animals:

309
Learn, Share, Build

Learn, Share, Build

I am currently working on an assignment that has to do a lot with JS and JSON objectsI have my Javascript objects setup but I'm just curious as to how I would store two objects within one 'master' object and how I would output that data to the page

209
Learn, Share, Build

Learn, Share, Build

Can't find a similar question asked before

289