123456789101112131415161718192021222324252627282930313233343536 |
- import { Queue } from './Queue.js';
- import './_version.js';
- class BackgroundSyncPlugin {
-
- constructor(name, options) {
-
- this.fetchDidFail = async ({ request }) => {
- await this._queue.pushRequest({ request });
- };
- this._queue = new Queue(name, options);
- }
- }
- export { BackgroundSyncPlugin };
|