Unified · Split
| @@ -36,13 +36,11 @@ app.templates.offlineError = (reason, exception) -> · 35 unmodified lines | |||
| 36 | when 'private_mode' | 36 | when 'private_mode' |
| 37 | """ Your browser appears to be running in private mode.<br> | 37 | """ Your browser appears to be running in private mode.<br> |
| 38 | This prevents DevDocs from caching documentations for offline access.""" | 38 | This prevents DevDocs from caching documentations for offline access.""" |
| 39 | when 'exception' | 39 | when 'exception', 'cant_open' |
| 40 | """ An error occurred when trying to open the IndexedDB database:<br> | 40 | """ An error occurred when trying to open the IndexedDB database:<br> |
| 41 | <code class="_label">#{exception.name}: #{exception.message}</code> """ | 41 | <code class="_label">#{exception.name}: #{exception.message}</code>#{"""<br> |
| 42 | when 'cant_open' | 42 | This could be because you're browsing in private mode or have disallowed offline storage on the domain. |
| 43 | """ An error occurred when trying to open the IndexedDB database:<br> | 43 | """ if reason is 'cant_open' else ''} """ |
| 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. """ | ||
| 46 | when 'version' | 44 | when 'version' |
| 47 | """ The IndexedDB database was modified with a newer version of the app.<br> | 45 | """ The IndexedDB database was modified with a newer version of the app.<br> |
| 48 | <a href="#" data-behavior="reload">Reload the page</a> to use offline mode. """ | 46 | <a href="#" data-behavior="reload">Reload the page</a> to use offline mode. """ |