diff --git a/src/files/service-worker.js b/src/files/service-worker.js index dc3cfe4..15f3193 100644 --- a/src/files/service-worker.js +++ b/src/files/service-worker.js @@ -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);