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:
parent
4257951f93
commit
9012b6ce5c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue