Reset IndexedDB when resetting the app

pull/165/head
Thibaut 10 years ago
parent 25f844da9b
commit 9cc6dc9cf6

@ -110,6 +110,7 @@
reset: ->
@store.clear()
@settings.reset()
@db.reset()
@appCache?.update()
window.location = '/'
return

@ -108,6 +108,9 @@ class app.DB
txn
reset: ->
try indexedDB?.deleteDatabase(NAME) catch
useIndexedDB: ->
!app.isSingleDoc() and !!window.indexedDB

Loading…
Cancel
Save