From 09b147aefa2b191cf741f65b42cc38930e93fc62 Mon Sep 17 00:00:00 2001 From: chmanie Date: Wed, 7 May 2014 18:51:50 +0200 Subject: [PATCH] change supportsArrayBuffer check to work with Safari --- jspdf.plugin.addimage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jspdf.plugin.addimage.js b/jspdf.plugin.addimage.js index f8d3911d6..2a1dcbfcd 100644 --- a/jspdf.plugin.addimage.js +++ b/jspdf.plugin.addimage.js @@ -305,7 +305,7 @@ * Check to see if ArrayBuffer is supported */ jsPDFAPI.supportsArrayBuffer = function() { - return typeof ArrayBuffer === 'function' && typeof Uint8Array !== 'undefined'; + return typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined'; }; /**