Reset IndexedDB when resetting the app

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

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

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

Loading…
Cancel
Save