diff --git a/src/modules/svg.js b/src/modules/svg.js index 333f59171..506f51657 100644 --- a/src/modules/svg.js +++ b/src/modules/svg.js @@ -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."));