Unified · Split
| @@ -110,6 +110,7 @@ · 109 unmodified lines | |||
| 110 | reset: -> | 110 | reset: -> |
| 111 | @store.clear() | 111 | @store.clear() |
| 112 | @settings.reset() | 112 | @settings.reset() |
| 113 | @db.reset() | ||
| 113 | @appCache?.update() | 114 | @appCache?.update() |
| 114 | window.location = '/' | 115 | window.location = '/' |
| 115 | return | 116 | return |
| @@ -108,6 +108,9 @@ class app.DB · 107 unmodified lines | |||
| 108 | 108 | ||
| 109 | txn | 109 | txn |
| 110 | 110 | ||
| 111 | reset: -> | ||
| 112 | try indexedDB?.deleteDatabase(NAME) catch | ||
| 113 | |||
| 111 | useIndexedDB: -> | 114 | useIndexedDB: -> |
| 112 | !app.isSingleDoc() and !!window.indexedDB | 115 | !app.isSingleDoc() and !!window.indexedDB |
| 113 | 116 | ||