History

Combine the `exception` and `cant_open` error messages

Jed Fox committed 8 years ago

Commit d9a11c21 parent 3bd91c91 file · +4 −6Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/templates/error_tmpl.coffee+4−6
@@ -36,13 +36,11 @@ app.templates.offlineError = (reason, exception) -> · 35 unmodified lines
3636 when 'private_mode'
3737 """ Your browser appears to be running in private mode.<br>
3838 This prevents DevDocs from caching documentations for offline access."""
39− when 'exception'
39+ when 'exception', 'cant_open'
4040 """ An error occurred when trying to open the IndexedDB database:<br>
41− <code class="_label">#{exception.name}: #{exception.message}</code> """
42− when 'cant_open'
43− """ An error occurred when trying to open the IndexedDB database:<br>
44− <code class="_label">#{exception.name}: #{exception.message}</code><br>
45− This could be because you're browsing in private mode or have disallowed offline storage on the domain. """
41+ <code class="_label">#{exception.name}: #{exception.message}</code>#{"""<br>
42+ This could be because you're browsing in private mode or have disallowed offline storage on the domain.
43+ """ if reason is 'cant_open' else ''} """
4644 when 'version'
4745 """ The IndexedDB database was modified with a newer version of the app.<br>
4846 <a href="#" data-behavior="reload">Reload the page</a> to use offline mode. """

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t