mirror of
https://github.com/titaniumnetwork-dev/Ultraviolet.git
synced 2025-05-16 21:10:02 -04:00
Update uv.handler.js
This commit is contained in:
parent
fbe68e441d
commit
981d149f24
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue