Skip to content

Commit 4f2024c

Browse files
committed
Added support for CommonJS environments (e.g. Browserify)
1 parent 28a3b31 commit 4f2024c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jspdf.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,6 +1936,8 @@ var jsPDF = (function(global) {
19361936
define('jsPDF', function() {
19371937
return jsPDF;
19381938
});
1939+
} else if (typeof module !== 'undefined' && module.exports) {
1940+
module.exports = jsPDF;
19391941
} else {
19401942
global.jsPDF = jsPDF;
19411943
}

0 commit comments

Comments
 (0)