Fix tests
This commit is contained in:
parent
5a7ab54ee6
commit
029c9754f0
7 changed files with 34 additions and 21 deletions
|
@ -29,7 +29,6 @@
|
|||
var ready = false;
|
||||
var items = new ItemCollection();
|
||||
items.on('reset', function() { ready = true; });
|
||||
items.fetch({reset: true});
|
||||
window.storage = {
|
||||
/*****************************
|
||||
*** Base Storage Routines ***
|
||||
|
@ -62,6 +61,12 @@
|
|||
} else {
|
||||
items.on('reset', callback);
|
||||
}
|
||||
},
|
||||
|
||||
fetch: function() {
|
||||
return new Promise(function(resolve) {
|
||||
items.fetch({reset: true}).always(resolve);
|
||||
});
|
||||
}
|
||||
};
|
||||
window.textsecure = window.textsecure || {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue