diff --git a/lib/uv.handler.js b/lib/uv.handler.js index e285fe1..f4677c9 100644 --- a/lib/uv.handler.js +++ b/lib/uv.handler.js @@ -540,6 +540,12 @@ async function __uvHook(window, config = {}, bare = '/bare/') { }; }); + // Until proper rewriting is implemented for service workers. + // Not sure atm how to implement it with the already built in service worker + if ('serviceWorker' in window.navigator) { + delete window.Navigator.prototype.serviceWorker; + }; + // Document client.document.on('getDomain', event => { event.data.value = __uv.domain;