mirror of
https://github.com/titaniumnetwork-dev/Ultraviolet.git
synced 2025-05-17 05:20:01 -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
|
// Document
|
||||||
client.document.on('getDomain', event => {
|
client.document.on('getDomain', event => {
|
||||||
event.data.value = __uv.domain;
|
event.data.value = __uv.domain;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue