From 9e1fc49ae7199ca1aca2f69a98462934d841d091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 5 Apr 2023 13:17:10 +0200 Subject: [PATCH] Fix mixed content warning when connecting to local node MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rūdolfs Ošiņš --- src/lib/utils.ts | 2 +- src/views/projects/CloneButton.svelte | 10 ++++++---- src/views/projects/Header.svelte | 2 +- tests/e2e/clipboard.spec.ts | 6 +++--- tests/e2e/hashRouter.spec.ts | 2 +- tests/e2e/historyRouter.spec.ts | 2 +- tests/e2e/project.spec.ts | 2 +- tests/support/fixtures.ts | 12 ++++++------ 8 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index e024fd397..b34d5c55a 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -278,7 +278,7 @@ export function extractHost(origin: string): Host { origin === "127.0.0.1" || origin === "127.0.0.1:8080" ) { - return { host: "0.0.0.0", port: 8080, scheme: "http" }; + return { host: "127.0.0.1", port: 8080, scheme: "http" }; } else if (origin.includes(":")) { return { host: origin.split(":")[0], diff --git a/src/views/projects/CloneButton.svelte b/src/views/projects/CloneButton.svelte index f17fb4556..4109a88b1 100644 --- a/src/views/projects/CloneButton.svelte +++ b/src/views/projects/CloneButton.svelte @@ -1,17 +1,19 @@