fix(websocket): Fix PermissionDenied error being caught in constructor (#8402)

This commit is contained in:
crowlKats 2020-11-25 15:17:46 +01:00 committed by GitHub
parent fb13967d1d
commit d40b0711a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 2 deletions

View file

@ -33,6 +33,10 @@
this.#url = wsURL.href;
core.jsonOpSync("op_ws_check_permission", {
url: this.#url,
});
if (protocols && typeof protocols === "string") {
protocols = [protocols];
}