fix: when idb is blocked, use console.error (#1081)

this allows the error to actually be logged in production for better debugging
This commit is contained in:
Nolan Lawson 2019-03-05 20:25:38 -08:00 committed by GitHub
parent 4257951f93
commit 9012b6ce5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function createDatabase (instanceName) {
openReqs[instanceName] = req
req.onerror = reject
req.onblocked = () => {
console.log('idb blocked')
console.error('idb blocked')
}
req.onupgradeneeded = (e) => {
let db = req.result