diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2020-11-25 15:17:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 15:17:46 +0100 |
commit | d40b0711a786d04b5e6321ae9bbf73c11220e865 (patch) | |
tree | 77f59e4441108bd4659ef12e193f74389c04a9c5 /cli/rt | |
parent | fb13967d1dd3aa7cc216b3f977a06d9718ae3678 (diff) |
fix(websocket): Fix PermissionDenied error being caught in constructor (#8402)
Diffstat (limited to 'cli/rt')
-rw-r--r-- | cli/rt/27_websocket.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/rt/27_websocket.js b/cli/rt/27_websocket.js index 675c1e836..60428c24d 100644 --- a/cli/rt/27_websocket.js +++ b/cli/rt/27_websocket.js @@ -33,6 +33,10 @@ this.#url = wsURL.href; + core.jsonOpSync("op_ws_check_permission", { + url: this.#url, + }); + if (protocols && typeof protocols === "string") { protocols = [protocols]; } |