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