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
221221 return
222222
223223 useIndexedDB: ->
224− !app.isSingleDoc() and !!window.indexedDB
224+ try
225+ !app.isSingleDoc() and !!window.indexedDB
226+ catch
227+ false
225228
226229 indexedDBVersion: ->
227230 if app.config.env is 'production' then app.config.version else Date.now() / 1000