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
355e87dd21
commit
fbe68e441d
1 changed files with 6 additions and 1 deletions
|
@ -681,7 +681,12 @@ async function __uvHook(window, config = {}, bare = '/bare/') {
|
||||||
});
|
});
|
||||||
|
|
||||||
client.websocket.on('websocket', async event => {
|
client.websocket.on('websocket', async event => {
|
||||||
const url = new URL(event.data.url);
|
let url;
|
||||||
|
try {
|
||||||
|
url = new URL(event.data.url);
|
||||||
|
} catch(e) {
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
|
||||||
const headers = {
|
const headers = {
|
||||||
Host: url.host,
|
Host: url.host,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue