You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<title>CoCreate Service Worker | CoCreateJS</title>
<meta name="description" content="Register an application service worker as a top-level CoCreate capability.">
</head>
<body>
<main>
<h1>CoCreate Service Worker</h1>
<p>Importing the component registers the configured service worker after page load. No DOM selector is required.</p>
<p>By default it registers <code>/service-worker.js</code>. Set <code>window.CoCreateConfig.serviceWorker</code> before loading CoCreate to choose another same-origin worker script.</p>
<p>See the demo for an explicit worker path and cache setting.</p>