fix: event service in Firefox
This commit is contained in:
parent
4c407e86af
commit
249518073d
@ -139,11 +139,6 @@ class EventService {
|
|||||||
try {
|
try {
|
||||||
const { storeName, instanceName } = this.getStoreNames(type)
|
const { storeName, instanceName } = this.getStoreNames(type)
|
||||||
|
|
||||||
if (this.idb.isBlocked) {
|
|
||||||
await sleep(500)
|
|
||||||
return this.getEventsFromDB(type)
|
|
||||||
}
|
|
||||||
|
|
||||||
const savedEvents = await this.idb.getAll({ storeName })
|
const savedEvents = await this.idb.getAll({ storeName })
|
||||||
|
|
||||||
if (!savedEvents || !savedEvents.length) {
|
if (!savedEvents || !savedEvents.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user