ntrolled by the worker, the worker script itself must be served from either <code>/</code> or <code>/myapp/</code>. The default scope is the containing path of the service worker script.</p>
<p>For even lower friction you can instead include the Service Worker Toolbox companion script in your HTML as shown below. Be aware that this is not customizable. If you need to do anything fancier than registering with a default scope, you'll need to use the standard registration.</p>
<pre class="prettyprint source la