From b204da1a7b3805d4bf4d32072926235eb0f13ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90nton=20Krivokhizhin?= Date: Thu, 29 Oct 2020 11:59:35 +0300 Subject: [PATCH] fix undefined Canvg reference (#2981) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Krivokhizhin Anton Co-authored-by: Lukas Holländer --- src/modules/svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."));