Update uv.handler.js

This commit is contained in:
Jason 2022-02-23 15:36:55 -05:00
parent 355e87dd21
commit fbe68e441d

View file

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