Unified · Split
| @@ -49,6 +49,8 @@ class app.DB · 48 unmodified lines | |||
| 49 | @onQuotaExceededError() | 49 | @onQuotaExceededError() |
| 50 | when 'VersionError' | 50 | when 'VersionError' |
| 51 | @onVersionError() | 51 | @onVersionError() |
| 52 | when 'InvalidStateError' | ||
| 53 | @fail 'private_mode' | ||
| 52 | else | 54 | else |
| 53 | @fail 'cant_open', error | 55 | @fail 'cant_open', error |
| 54 | return | 56 | return |
| @@ -33,6 +33,9 @@ app.templates.offlineError = (reason, exception) -> · 32 unmodified lines | |||
| 33 | when 'buggy' | 33 | when 'buggy' |
| 34 | """ DevDocs requires IndexedDB to cache documentations for offline access.<br> | 34 | """ DevDocs requires IndexedDB to cache documentations for offline access.<br> |
| 35 | Unfortunately your browser's implementation of IndexedDB contains bugs that prevent DevDocs from using it. """ | 35 | Unfortunately your browser's implementation of IndexedDB contains bugs that prevent DevDocs from using it. """ |
| 36 | when 'private_mode' | ||
| 37 | """ Your browser appears to be running in private mode.<br> | ||
| 38 | This prevents DevDocs from caching documentations for offline access.""" | ||
| 36 | when 'exception' | 39 | when 'exception' |
| 37 | """ An error occured when trying to open the IndexedDB database:<br> | 40 | """ An error occured when trying to open the IndexedDB database:<br> |
| 38 | <code class="_label">#{exception.name}: #{exception.message}</code> """ | 41 | <code class="_label">#{exception.name}: #{exception.message}</code> """ |