Skip to content

Commit 9b41915

Browse files
Fix jsPDF import
1 parent b447683 commit 9b41915

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: examples/simple.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<body>
1919
<button onclick="generate()">Generate pdf</button>
2020

21-
<script src="libs/jspdf.debug.js"></script>
21+
<script src="libs/jspdf.umd.js"></script>
2222
<script src="../dist/jspdf.plugin.autotable.js"></script>
2323

2424
<table id="table">
@@ -54,7 +54,7 @@
5454

5555
<script>
5656
function generate() {
57-
var doc = new jsPDF()
57+
var doc = new jspdf.jsPDF()
5858

5959
// Simple data example
6060
var head = [['ID', 'Country', 'Rank', 'Capital']]

Diff for: webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
commonjs: 'jspdf',
2727
commonjs2: 'jspdf',
2828
amd: 'jspdf',
29-
root: 'jsPDF',
29+
root: 'jspdf',
3030
},
3131
},
3232
performance: { hints: false },

0 commit comments

Comments
 (0)