Kaynağa Gözat

work around issue #6594

makc 10 yıl önce
ebeveyn
işleme
cd31270817
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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 );
 
 	};