Fix issues of no file extension for pad export

This commit is contained in:
ClemDee
2019-07-29 16:30:48 +02:00
parent 3de9021397
commit 3e918ec1cf
13 changed files with 30 additions and 25 deletions

View File

@@ -14,7 +14,7 @@ define([
var canvas = new Fabric.Canvas(canvas_node);
var content = userDoc.content;
canvas.loadFromJSON(content, function () {
module.type = 'svg';
module.ext = '.svg';
cb(canvas.toSVG());
});
};

View File

@@ -415,7 +415,7 @@ define([
setEditable(!locked);
});
framework.setFileExporter('png', function (cb) {
framework.setFileExporter('.png', function (cb) {
$canvas[0].toBlob(function (blob) {
cb(blob);
});