Skip to content

Commit

Permalink
Fix modifyServiceWorkerConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanSaeed committed Nov 23, 2021
1 parent 6ff2b91 commit d48dc5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/files/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export const createServiceWorker = async (context, config, queue, options) => {
return urls
}, {})
};
if (config.modifyServiceWorkerConfig) {
config.modifyServiceWorkerConfig(swConfig);
if (options.modifyServiceWorkerConfig) {
options.modifyServiceWorkerConfig(swConfig);
}
await generateSW(swConfig);

Expand Down

0 comments on commit d48dc5a

Please sign in to comment.