Skip to content

Commit 78797f1

Browse files
committed
Merge pull request #248 from chmanie/master
change supportsArrayBuffer check to work with Safari
2 parents 4c69493 + 59e3133 commit 78797f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/jspdf.debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,7 @@ var jsPDF = (function(global) {
20782078
* Check to see if ArrayBuffer is supported
20792079
*/
20802080
jsPDFAPI.supportsArrayBuffer = function() {
2081-
return typeof ArrayBuffer === 'function' && typeof Uint8Array !== 'undefined';
2081+
return typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined';
20822082
};
20832083

20842084
/**

0 commit comments

Comments
 (0)