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 return
useIndexedDB: -> useIndexedDB: ->
try
!app.isSingleDoc() and !!window.indexedDB !app.isSingleDoc() and !!window.indexedDB
catch
false
indexedDBVersion: -> indexedDBVersion: ->
if app.config.env is 'production' then app.config.version else Date.now() / 1000 if app.config.env is 'production' then app.config.version else Date.now() / 1000