Skip to content

Commit

Permalink
fix undefined Canvg reference (#2981)
Browse files Browse the repository at this point in the history
Co-authored-by: Krivokhizhin Anton <[email protected]>
Co-authored-by: Lukas Holländer <[email protected]>
  • Loading branch information
3 people authored Oct 29, 2020
1 parent c44b9c1 commit b204da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ import { globalObject } from "../libs/globalObject.js";
return loadCanvg()
.then(
function(canvg) {
return canvg.Canvg.fromString(ctx, svg, options);
return canvg.fromString(ctx, svg, options);
},
function() {
return Promise.reject(new Error("Could not load canvg."));
Expand Down

0 comments on commit b204da1

Please sign in to comment.