We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35f703a commit 33bfa8dCopy full SHA for 33bfa8d
packages/idb-cache/src/index.ts
@@ -201,12 +201,6 @@ export class IDBCache implements IDBCacheInterface {
201
cacheKey?: string,
202
cacheBuster?: string
203
): Promise<void> {
204
- if (this.workerInitializationFailed) {
205
- throw new WorkerInitializationError(
206
- "Worker initialization previously failed"
207
- );
208
- }
209
-
210
if (this.workerReadyPromise) {
211
return this.workerReadyPromise;
212
}
@@ -245,6 +239,7 @@ export class IDBCache implements IDBCacheInterface {
245
239
if (error instanceof IDBCacheError) {
246
240
throw error;
247
241
242
+ this.workerInitializationFailed = true;
248
243
throw new WorkerInitializationError("Worker failed to initialize.");
249
244
250
0 commit comments