Максим Кудрявцев 6 年之前
父节点
当前提交
f3fd5e1bd0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/js/Menubar.File.js

+ 1 - 1
editor/js/Menubar.File.js

@@ -397,7 +397,7 @@ Menubar.File = function ( editor ) {
 
 
 		link.href = URL.createObjectURL( blob );
 		link.href = URL.createObjectURL( blob );
 		link.download = filename || 'data.json';
 		link.download = filename || 'data.json';
-		link.dispatchEvent( new MouseEvent('click') );
+		link.dispatchEvent( new MouseEvent( 'click' ) );
 
 
 		// URL.revokeObjectURL( url ); breaks Firefox...
 		// URL.revokeObjectURL( url ); breaks Firefox...