Wrap app.DB#useIndexedDB in try/catch

This commit is contained in:
Thibaut 2015-01-15 22:42:30 -05:00
parent bc2937b307
commit eecbade78e

View file

@ -221,7 +221,10 @@ class app.DB
return
useIndexedDB: ->
!app.isSingleDoc() and !!window.indexedDB
try
!app.isSingleDoc() and !!window.indexedDB
catch
false
indexedDBVersion: ->
if app.config.env is 'production' then app.config.version else Date.now() / 1000