浏览代码

await fromJSON complete (#28318)

ycw 1 年之前
父节点
当前提交
232b4eac8c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/index.html

+ 2 - 2
editor/index.html

@@ -106,13 +106,13 @@
 
 			editor.storage.init( function () {
 
-				editor.storage.get( function ( state ) {
+				editor.storage.get( async function ( state ) {
 
 					if ( isLoadingFromHash ) return;
 
 					if ( state !== undefined ) {
 
-						editor.fromJSON( state );
+						await editor.fromJSON( state );
 
 					}