Skip to content

Instantly share code, notes, and snippets.

@YonatanKra
Created June 20, 2023 06:25
Show Gist options
  • Save YonatanKra/f5d61c3feb2b33a8f21f309e11872307 to your computer and use it in GitHub Desktop.
Save YonatanKra/f5d61c3feb2b33a8f21f309e11872307 to your computer and use it in GitHub Desktop.
self.addEventListener('install', (event) => {
event.waitUntil(
addResourcesToCache([
'./',
'./index.html',
'/assets/styles/core/all.css',
'/assets/scripts/vivid-components.js',
'/assets/scripts/live-sample.js',
])
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment