Skip to content

Commit

Permalink
fix: update to jspdf version without file-saver
Browse files Browse the repository at this point in the history
update jsdpf to ^2.3.0
  • Loading branch information
megheaiulian committed Feb 17, 2021
1 parent d37ad18 commit aec7115
Show file tree
Hide file tree
Showing 3 changed files with 3,373 additions and 3,555 deletions.
3 changes: 1 addition & 2 deletions lib/pdf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global jsPDF */
export const
fit = (rect, bounds) => {
const rectRatio = rect.width / rect.height,
Expand All @@ -19,7 +18,7 @@ export const
const options = {
credentials: credentials ? 'include' : 'omit'
},
[, ...responses] = await Promise.all([import('jspdf'), ...urls.map(
[{ jsPDF }, ...responses] = await Promise.all([import('jspdf'), ...urls.map(
async url => {
const response = await fetch(url, options);
return response.ok
Expand Down
Loading

0 comments on commit aec7115

Please sign in to comment.