Pārlūkot izejas kodu

await fromJSON complete (#28318)

ycw 1 gadu atpakaļ
vecāks
revīzija
232b4eac8c
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 );
 
 					}