diff --git a/assets/javascripts/templates/error_tmpl.coffee b/assets/javascripts/templates/error_tmpl.coffee index 9c19c0a6..2b169c09 100644 --- a/assets/javascripts/templates/error_tmpl.coffee +++ b/assets/javascripts/templates/error_tmpl.coffee @@ -36,13 +36,11 @@ app.templates.offlineError = (reason, exception) -> when 'private_mode' """ Your browser appears to be running in private mode.
This prevents DevDocs from caching documentations for offline access.""" - when 'exception' + when 'exception', 'cant_open' """ An error occurred when trying to open the IndexedDB database:
- #{exception.name}: #{exception.message} """ - when 'cant_open' - """ An error occurred when trying to open the IndexedDB database:
- #{exception.name}: #{exception.message}
- This could be because you're browsing in private mode or have disallowed offline storage on the domain. """ + #{exception.name}: #{exception.message}#{"""
+ This could be because you're browsing in private mode or have disallowed offline storage on the domain. + """ if reason is 'cant_open' else ''} """ when 'version' """ The IndexedDB database was modified with a newer version of the app.
Reload the page to use offline mode. """