Skip to content

Commit 00bcb6f

Browse files
committed
Using new FileSaver's unload method to avoid memory leaks.
1 parent 0ce4e39 commit 00bcb6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jspdf.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,9 @@ var jsPDF = (function(global) {
751751
}
752752
}
753753
saveAs(getBlob(), options);
754+
if(typeof saveAs.unload === 'function') {
755+
saveAs.unload();
756+
}
754757
break;
755758
case 'blob':
756759
return getBlob();

0 commit comments

Comments
 (0)