Unified · Split
| @@ -36,13 +36,11 @@ app.templates.offlineError = (reason, exception) -> · 35 unmodified lines | ||
| 36 | 36 | when 'private_mode' |
| 37 | 37 | """ Your browser appears to be running in private mode.<br> |
| 38 | 38 | This prevents DevDocs from caching documentations for offline access.""" |
| 39 | − when 'exception' | |
| 39 | + when 'exception', 'cant_open' | |
| 40 | 40 | """ 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 ''} """ | |
| 46 | 44 | when 'version' |
| 47 | 45 | """ The IndexedDB database was modified with a newer version of the app.<br> |
| 48 | 46 | <a href="#" data-behavior="reload">Reload the page</a> to use offline mode. """ |