From 2280d770629349669b4abf6771ac620b16530691 Mon Sep 17 00:00:00 2001 From: Ingmar Stein Date: Sat, 8 Mar 2025 19:21:18 +0000 Subject: [PATCH] Rename humanize.star and qrcode.star to resolve "circular dependency detected: humanize.star -> humanize.star" --- examples/humanize/{humanize.star => example.star} | 0 examples/qrcode/{qrcode.star => example.star} | 0 src/features/watcher/watcher.js | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename examples/humanize/{humanize.star => example.star} (100%) rename examples/qrcode/{qrcode.star => example.star} (100%) diff --git a/examples/humanize/humanize.star b/examples/humanize/example.star similarity index 100% rename from examples/humanize/humanize.star rename to examples/humanize/example.star diff --git a/examples/qrcode/qrcode.star b/examples/qrcode/example.star similarity index 100% rename from examples/qrcode/qrcode.star rename to examples/qrcode/example.star diff --git a/src/features/watcher/watcher.js b/src/features/watcher/watcher.js index 340c3429fd..58f4efe658 100644 --- a/src/features/watcher/watcher.js +++ b/src/features/watcher/watcher.js @@ -10,7 +10,7 @@ export default class Watcher { connect() { const proto = document.location.protocol === "https:" ? "wss:" : "ws:"; - this.conn = new WebSocket(proto + '//' + document.location.host + document.location.pathname + 'api/v1/ws'); + this.conn = new WebSocket(proto + '//' + document.location.host + document.location.pathname + '/api/v1/ws'); this.conn.open = this.open.bind(this); this.conn.onmessage = this.process.bind(this); this.conn.onclose = this.close.bind(this);