Skip to content

Commit b204da1

Browse files
antonkri97Krivokhizhin AntonHackbrettXXX
authored
fix undefined Canvg reference (#2981)
Co-authored-by: Krivokhizhin Anton <[email protected]> Co-authored-by: Lukas Holländer <[email protected]>
1 parent c44b9c1 commit b204da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/svg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ import { globalObject } from "../libs/globalObject.js";
132132
return loadCanvg()
133133
.then(
134134
function(canvg) {
135-
return canvg.Canvg.fromString(ctx, svg, options);
135+
return canvg.fromString(ctx, svg, options);
136136
},
137137
function() {
138138
return Promise.reject(new Error("Could not load canvg."));

0 commit comments

Comments
 (0)