Skip to content

Commit 17fc000

Browse files
committed
0.3.0 compatibility
1 parent 6c2a369 commit 17fc000

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

playground.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,14 @@ <h1>Playground does not make too much sense when horizontal resolution is below
121121

122122
eval(editor.getSession().getValue());
123123

124-
pdfMake.createPdf(dd).getDataUrl(function(outDoc) {
124+
pdfMake.createPdf(dd).getDataUrl().then((outDoc) => {
125125
$scope.$apply(function() {
126126
$scope.stats = 'generated in ' + (new Date().getTime() - lastGen.getTime()) + ' ms';
127127
});
128128

129129
document.getElementById('pdfV').src = outDoc;
130-
130+
}, err => {
131+
console.error(err);
131132
});
132133
}
133134

0 commit comments

Comments
 (0)