Skip to content

Commit 583f101

Browse files
committed
Merge pull request #250 from chmanie/master
change supportsArrayBuffer check to work with Safari
2 parents 78797f1 + 09b147a commit 583f101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jspdf.plugin.addimage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
* Check to see if ArrayBuffer is supported
306306
*/
307307
jsPDFAPI.supportsArrayBuffer = function() {
308-
return typeof ArrayBuffer === 'function' && typeof Uint8Array !== 'undefined';
308+
return typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined';
309309
};
310310

311311
/**

0 commit comments

Comments
 (0)