Clear localStorage before db destroy

This commit is contained in:
Mo Bitar
2017-08-22 17:37:12 -05:00
parent bbc55d5444
commit a9e414d271
2 changed files with 2 additions and 1 deletions

View File

@@ -325,8 +325,8 @@ class SyncManager {
}
destroyLocalData(callback) {
localStorage.clear();
this.dbManager.clearAllItems(function(){
localStorage.clear();
if(callback) {
this.$timeout(function(){
callback();