Skip to content

Commit a95797a

Browse files
committed
Editor: Workaround for Storage not being ready in time.
1 parent 3773c76 commit a95797a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editor/js/Storage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ var Storage = function () {
8080

8181
clear: function () {
8282

83+
if ( database === undefined ) return;
84+
8385
var transaction = database.transaction( [ 'states' ], 'readwrite' );
8486
var objectStore = transaction.objectStore( 'states' );
8587
var request = objectStore.clear();

0 commit comments

Comments
 (0)