Procházet zdrojové kódy

await fromJSON complete (#28318)

ycw před 2 roky
rodič
revize
232b4eac8c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 );
 
 					}
 

粤ICP备19079148号