From d48dc5a06ad6a34c7c9dbcdcec10926e5f3359b3 Mon Sep 17 00:00:00 2001 From: Muhammad Rehan Saeed Date: Tue, 23 Nov 2021 09:49:18 +0000 Subject: [PATCH] Fix modifyServiceWorkerConfig --- src/files/service-worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);