Skip to content

Commit

Permalink
Update message type in prefetch-on-demand controller (#176)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Spomky authored Apr 22, 2024
1 parent 2b6b468 commit 891abdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/src/prefetch-on-demand_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export default class extends Controller {
}

workbox.messageSW({
"type": "PREFETCH",
"type": "CACHE_URLS",
"payload": {
"urls": params.urls
"urlsToCache": params.urls
}
});
}
Expand Down

0 comments on commit 891abdc

Please sign in to comment.