fix: event service in Firefox

This commit is contained in:
Danil Kovtonyuk 2022-04-26 17:25:33 +10:00
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) {