mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 13:44:47 +00:00
fix(websocket): Fix PermissionDenied error being caught in constructor (#8402)
This commit is contained in:
parent
fb13967d1d
commit
d40b0711a7
4 changed files with 45 additions and 2 deletions
|
@ -33,6 +33,10 @@
|
|||
|
||||
this.#url = wsURL.href;
|
||||
|
||||
core.jsonOpSync("op_ws_check_permission", {
|
||||
url: this.#url,
|
||||
});
|
||||
|
||||
if (protocols && typeof protocols === "string") {
|
||||
protocols = [protocols];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue