chore(sw): update jsdoc
This commit is contained in:
parent
343568042c
commit
29a29e4d63
1 changed files with 4 additions and 3 deletions
|
@ -32,11 +32,12 @@ const cleanOldCaches = async () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds resources to the service worker cache.
|
* Adds specified resources to the service worker cache.
|
||||||
|
* This function is used to cache static assets for offline access.
|
||||||
* @async
|
* @async
|
||||||
* @function addResourcesToCache
|
* @function addResourcesToCache
|
||||||
* @param {string[]} resources - An array of resource URLs to be cached.
|
* @param {Array<string>} resources - An array of URLs representing the resources to be cached.
|
||||||
* @returns {Promise<void>} A promise that resolves when all resources have been added to the cache.
|
* @returns {Promise<void>} A promise that resolves when all resources have been successfully added to the cache.
|
||||||
*/
|
*/
|
||||||
const addResourcesToCache = async (resources) => {
|
const addResourcesToCache = async (resources) => {
|
||||||
const cache = await caches.open(cacheName)
|
const cache = await caches.open(cacheName)
|
||||||
|
|
Loading…
Reference in a new issue