From 891abdcf857b40d79c75c4275c9c4a1783abfb39 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Mon, 22 Apr 2024 20:08:23 +0200 Subject: [PATCH] Update message type in prefetch-on-demand controller (#176) The message type in the workbox.messageSW function call was updated from "PREFETCH" to "CACHE_URLS". Additionally, the payload property name was changed from "urls" to "urlsToCache" to reflect the latest method call changes. --- assets/src/prefetch-on-demand_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/src/prefetch-on-demand_controller.js b/assets/src/prefetch-on-demand_controller.js index 477adc7..287b9e2 100644 --- a/assets/src/prefetch-on-demand_controller.js +++ b/assets/src/prefetch-on-demand_controller.js @@ -11,9 +11,9 @@ export default class extends Controller { } workbox.messageSW({ - "type": "PREFETCH", + "type": "CACHE_URLS", "payload": { - "urls": params.urls + "urlsToCache": params.urls } }); }