History

Wrap app.DB#useIndexedDB in try/catch

Thibaut committed 11 years ago

Commit eecbade1 parent bc2937b1 file · +4 −1Browse files

Unified · Split

assets/javascripts/app/db.coffee+4−1
@@ -221,7 +221,10 @@ class app.DB · 220 unmodified lines
221 return221 return
222 222
223 useIndexedDB: ->223 useIndexedDB: ->
224 !app.isSingleDoc() and !!window.indexedDB224 try
225 !app.isSingleDoc() and !!window.indexedDB
226 catch
227 false
225 228
226 indexedDBVersion: ->229 indexedDBVersion: ->
227 if app.config.env is 'production' then app.config.version else Date.now() / 1000230 if app.config.env is 'production' then app.config.version else Date.now() / 1000