Fix mathjax export

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

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

Loading…
Cancel
Save