ソースを参照

work around issue #6594

makc 10 年 前
コミット
cd31270817
1 ファイル変更3 行追加0 行削除
  1. 3 0
      editor/js/Menubar.File.js

+ 3 - 0
editor/js/Menubar.File.js

@@ -287,7 +287,10 @@ Menubar.File = function ( editor ) {
 		link.href = objectURL;
 		link.download = filename || 'data.json';
 		link.target = '_blank';
+		link.style.display = 'none';
+		document.body.appendChild( link );
 		link.click();
+		document.body.removeChild( link );
 
 	};