Update uv.handler.js

This commit is contained in:
Jason 2022-02-23 16:42:02 -05:00
parent fbe68e441d
commit 981d149f24

View file

@ -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;