提交 df315bee 编写于 作者: R Ricardo Cabello

Merge pull request #6730 from gero3/patch-41

Make exporting data also work in Firefox
......@@ -290,7 +290,13 @@ Menubar.File = function ( editor ) {
link.href = objectURL;
link.download = filename || 'data.json';
link.target = '_blank';
link.click();
var event = document.createEvent("MouseEvents");
event.initMouseEvent(
"click", true, false, window, 0, 0, 0, 0, 0
, false, false, false, false, 0, null
);
link.dispatchEvent(event);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册