Web and service worker example

This an example of how to include @bugsnag/web-worker in a web worker and a service worker.

This app has 2 web workers and 1 service worker. 1 web worker leaves unhandled errors to propagate to the browser context and be reported here, while the other has propagation disabled and reports its own unhandled errors.

You can unregister the current service worker by pressing the 'Unregister' button. Simply refresh the page to instantiate the new service worker.

Web Worker with Propagation

Web Worker without Propagation

Service Worker