Fix image export

This commit is contained in:
Paulo Gustavo Veiga 2022-02-13 08:18:16 -08:00
parent ec4bb85009
commit b076f482f1

View File

@ -31,7 +31,7 @@ class BinaryImageExporter extends Exporter {
height: number;
constructor(mindmap: Mindmap, svgElement: Element, width: number, height: number, imgFormat: 'image/png' | 'image/jpeg') {
super(imgFormat.split['/'][0], imgFormat);
super(imgFormat.split('/')[0], imgFormat);
this.svgElement = svgElement;
this.mindmap = mindmap;