From 912004751dd53d2e78944d9a5ae19b86e8dee95c Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Mon, 14 Mar 2022 15:29:35 -0700 Subject: [PATCH] quickfix: partial mitigation for #193, use current host for websock address --- frontend/src/components/screencast.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/screencast.ts b/frontend/src/components/screencast.ts index 9fd4dd04..969890a9 100644 --- a/frontend/src/components/screencast.ts +++ b/frontend/src/components/screencast.ts @@ -233,7 +233,7 @@ export class Screencast extends LitElement { } const baseURL = `${window.location.protocol === "https:" ? "wss" : "ws"}:${ - process.env.WEBSOCKET_HOST || window.location.host + window.location.host }/watch/${this.archiveId}/${this.crawlId}`; this.watchIPs.forEach((ip: string) => {