Fix mathjax export

pull/1/head
yflory 4 years ago
parent 280e96287b
commit 3fbfea516f

@ -467,11 +467,9 @@ define([
canvas.height = i.height; canvas.height = i.height;
var context = canvas.getContext('2d'); var context = canvas.getContext('2d');
context.drawImage(i, 0, 0, i.width, i.height); context.drawImage(i, 0, 0, i.width, i.height);
var png = canvas.toDataURL(); canvas.toBlob(function (blob) {
var link = document.createElement('a'); window.saveAs(blob, name);
link.download = name; });
link.href = png;
link.click();
}; };
i.src = blobURL; i.src = blobURL;
})(); })();

Loading…
Cancel
Save