summaryrefslogtreecommitdiff
path: root/share/web_surfaces/shared/channel.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/web_surfaces/shared/channel.js')
-rw-r--r--share/web_surfaces/shared/channel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/web_surfaces/shared/channel.js b/share/web_surfaces/shared/channel.js
index 2bec7f6795..9d1de0ac79 100644
--- a/share/web_surfaces/shared/channel.js
+++ b/share/web_surfaces/shared/channel.js
@@ -33,7 +33,7 @@ export const Node = Object.freeze({
export function nodeAddressHash(node, addr) {
- return [node].concat(addr).join('_');
+ return [node].concat(addr || []).join('_');
}
@@ -44,7 +44,7 @@ export class MessageChannel {
this.host = host;
}
- open () {
+ async open () {
return new Promise((resolve, reject) => {
this.socket = new WebSocket(`ws://${this.host}`);