| @@ -22,10 +22,19 @@ app.templates.bootError = -> · 21 unmodified lines |
| 22 | """ Check your Internet connection and try <a href="javascript:location.reload()">reloading</a>.<br> | 22 | """ Check your Internet connection and try <a href="javascript:location.reload()">reloading</a>.<br> |
| 23 | If you keep seeing this, you're likely behind a proxy or firewall that blocks cross-domain requests. """ | 23 | If you keep seeing this, you're likely behind a proxy or firewall that blocks cross-domain requests. """ |
| 24 | | 24 | |
| 25 | app.templates.offlineError = -> | 25 | app.templates.offlineError = (reason) -> |
| 26 | error """ Oops, the database failed to load. """, | 26 | reason = switch reason |
| 27 | """ DevDocs requires IndexedDB to cache documentations for offline access.<br> | 27 | when 'not_supported' |
| 28 | Unfortunately IndexedDB is either not supported in your browser, disabled, or buggy. """ | 28 | """ Unfortunately your browser either doesn't support it or does not make it available. """ |
| | 29 | when 'cant_open' |
| | 30 | """ Although your browser appears to support it, DevDocs couldn't open the database.<br> |
| | 31 | This could be because you're browsing in private mode and have disallowed offline storage on the domain. """ |
| | 32 | when 'apple' |
| | 33 | """ Unfortunately Safari's implementation of IndexedDB is <a href="https://bugs.webkit.org/show_bug.cgi?id=136937">badly broken</a>.<br> |
| | 34 | This message will automatically go away when Apple fix their code. """ |
| | 35 | |
| | 36 | error """ Oops, offline mode is unavailable. """, |
| | 37 | """ DevDocs requires IndexedDB to cache documentations for offline access.<br>#{reason} """ |
| 29 | | 38 | |
| 30 | app.templates.unsupportedBrowser = """ | 39 | app.templates.unsupportedBrowser = """ |
| 31 | <div class="_fail"> | 40 | <div class="_fail"> |