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 <antonkrivohizin@Antons-MacBook-Pro.local>
Co-authored-by: Lukas Holländer <lukas.hollaender@yworks.com>
  • Loading branch information
3 people committed 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
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.