aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/src/stories.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-08-26 12:59:00 -0300
committerSebastian <sebasjm@gmail.com>2022-08-26 12:59:09 -0300
commitcf894f1dd309e48d8be380c56175219027c84fb7 (patch)
tree8aa434c47d4ed366f4b3d5f0bd89fc696a388b9d /packages/anastasis-webui/src/stories.tsx
parenteef2d4702019b9de64efc01fff097b437e65ce39 (diff)
downloadwallet-core-cf894f1dd309e48d8be380c56175219027c84fb7.tar.xz
fix #7065
Diffstat (limited to 'packages/anastasis-webui/src/stories.tsx')
-rw-r--r--packages/anastasis-webui/src/stories.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/anastasis-webui/src/stories.tsx b/packages/anastasis-webui/src/stories.tsx
index fb37cdfa5..7d22deece 100644
--- a/packages/anastasis-webui/src/stories.tsx
+++ b/packages/anastasis-webui/src/stories.tsx
@@ -38,7 +38,6 @@ function parseExampleImport(
im: any,
name?: string,
): ComponentItem {
- console.log(im);
const component = name || im.default.title;
const order: number = im.default.args?.order || 0;
return {
@@ -372,9 +371,8 @@ function LiveReload({ port = 8002 }: { port?: number }): VNode {
}
function setupLiveReload(port: number, onReload: () => void): void {
- const protocol = location.protocol === "https:" ? "wss:" : "ws:";
- const host = location.hostname;
- const socketPath = `${protocol}//${host}:${port}/socket`;
+ const socketPath = `ws://localhost:8003/socket`;
+ // const socketPath = `${protocol}//${host}:${port}/socket`;
const ws = new WebSocket(socketPath);
ws.onmessage = (message) => {