From 29a29e4d63c9411f8d2d0bfe6b97391535535aa6 Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 26 Aug 2025 01:23:30 +0200 Subject: [PATCH] chore(sw): update jsdoc --- src/sw.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sw.mjs b/src/sw.mjs index 4dd8380..c82853c 100644 --- a/src/sw.mjs +++ b/src/sw.mjs @@ -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 * @function addResourcesToCache - * @param {string[]} resources - An array of resource URLs to be cached. - * @returns {Promise} A promise that resolves when all resources have been added to the cache. + * @param {Array} resources - An array of URLs representing the resources to be cached. + * @returns {Promise} A promise that resolves when all resources have been successfully added to the cache. */ const addResourcesToCache = async (resources) => { const cache = await caches.open(cacheName)