mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix mathjax export
This commit is contained in:
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…
Reference in New Issue
Block a user