提交 a95797a4 编写于 作者: M Mr.doob

Editor: Workaround for Storage not being ready in time.

上级 3773c76b
......@@ -80,6 +80,8 @@ var Storage = function () {
clear: function () {
if ( database === undefined ) return;
var transaction = database.transaction( [ 'states' ], 'readwrite' );
var objectStore = transaction.objectStore( 'states' );
var request = objectStore.clear();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册