ng-html"><code>&lt;script src=&quot;/path/to/sw-toolbox/companion.js&quot; data-service-worker=&quot;my-service-worker.js&quot;>&lt;/script></code></pre><h3>Add Service Worker Toolbox to your service worker script</h3><p>In your service worker you just need to use <code>importScripts</code> to load Service Worker Toolbox</p>
<pre class="prettyprint source lang-javascript"><code>importScripts('bower_components/sw-toolbox/sw-toolbox.js'); // Update path to match your own setup</code></pre><h3>Use the toolbox<