Skip to content

Commit

Permalink
Invalidate the cache after migrating DB
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonBarnabe committed Apr 3, 2016
1 parent e3e6aa3 commit 980ac31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage-websql.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ var webSqlStorage = {
webSqlStorage.cleanStyle(s)
os.add(s);
});
// While this was running, the styles were loaded from the (empty) indexed db
setTimeout(function() {
invalidateCache(true);
}, 500);
});
}, null);
},
Expand Down

0 comments on commit 980ac31

Please sign in to comment.