History

Detect and recover from IndexedDB QuotaExceededError

Fixes #154

Thibaut committed 11 years ago

Commit 9dc99bd1 parent 1b6ded93 files · +18 −3Browse files

Showing the changes to assets/javascripts/templates (1 of 3 files). Show all

Unified · Split

assets/javascripts/templates/notif_tmpl.coffee+4−0
@@ -15,6 +15,10 @@ app.templates.notifError = -> · 14 unmodified lines
15 <a href="javascript:if(confirm('Are you sure you want to reset DevDocs?'))app.reset()">resetting the app</a>.<br>15 <a href="javascript:if(confirm('Are you sure you want to reset DevDocs?'))app.reset()">resetting the app</a>.<br>
16 You can also report this issue on <a href="https://github.com/Thibaut/devdocs/issues/new" target="_blank">GitHub</a>. """16 You can also report this issue on <a href="https://github.com/Thibaut/devdocs/issues/new" target="_blank">GitHub</a>. """
17 17
18app.templates.notifQuotaExceeded = ->
19 textNotif """ Oops, the offline database has exceeded its size limitation. """,
20 """ Unfortunately this quota can't be detected programmatically, and the database can't be opened while over the quota, so it had to be reset. """
21
18app.templates.notifInvalidLocation = ->22app.templates.notifInvalidLocation = ->
19 textNotif """ DevDocs must be loaded from #{app.config.production_host} """,23 textNotif """ DevDocs must be loaded from #{app.config.production_host} """,
20 """ Otherwise things are likely to break. """24 """ Otherwise things are likely to break. """