Browse Source

await fromJSON complete (#28318)

ycw 1 year ago
parent
commit
232b4eac8c
1 changed files with 2 additions and 2 deletions
  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 );
 
 					}