Unified · Split
| @@ -49,6 +49,8 @@ class app.DB · 48 unmodified lines | ||
| 49 | 49 | @onQuotaExceededError() |
| 50 | 50 | when 'VersionError' |
| 51 | 51 | @onVersionError() |
| 52 | + when 'InvalidStateError' | |
| 53 | + @fail 'private_mode' | |
| 52 | 54 | else |
| 53 | 55 | @fail 'cant_open', error |
| 54 | 56 | return |
| @@ -33,6 +33,9 @@ app.templates.offlineError = (reason, exception) -> · 32 unmodified lines | ||
| 33 | 33 | when 'buggy' |
| 34 | 34 | """ DevDocs requires IndexedDB to cache documentations for offline access.<br> |
| 35 | 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 | 39 | when 'exception' |
| 37 | 40 | """ An error occured when trying to open the IndexedDB database:<br> |
| 38 | 41 | <code class="_label">#{exception.name}: #{exception.message}</code> """ |