mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Wrap app.DB#useIndexedDB in try/catch
This commit is contained in:
parent
bc2937b307
commit
eecbade78e
1 changed files with 4 additions and 1 deletions
|
@ -221,7 +221,10 @@ class app.DB
|
||||||
return
|
return
|
||||||
|
|
||||||
useIndexedDB: ->
|
useIndexedDB: ->
|
||||||
!app.isSingleDoc() and !!window.indexedDB
|
try
|
||||||
|
!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
|
||||||
|
|
Loading…
Reference in a new issue