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
|
openReqs[instanceName] = req
|
||||||
req.onerror = reject
|
req.onerror = reject
|
||||||
req.onblocked = () => {
|
req.onblocked = () => {
|
||||||
console.log('idb blocked')
|
console.error('idb blocked')
|
||||||
}
|
}
|
||||||
req.onupgradeneeded = (e) => {
|
req.onupgradeneeded = (e) => {
|
||||||
let db = req.result
|
let db = req.result
|
||||||
|
|
Loading…
Reference in a new issue