Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const doc = core.getDocument();
  2. return doc.getFileData(downloadOptions).then(
  3.           data => {
  4.             const arr = new Uint8Array(data);
  5.             if (isIE) {
  6.               file = new Blob([arr], { type: 'application/pdf' });
  7.             } else {
  8.               file = new File([arr], downloadName, { type: 'application/pdf' });
  9.             }
  10.  
  11.             saveAs(file, downloadName);
  12.             dispatch(actions.closeElement('loadingModal'));
  13.             fireEvent('finishedSavingPDF');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement