diff --git a/frontend/src/components/ExternalLink.tsx b/frontend/src/components/ExternalLink.tsx index c76d31a1b..8541db14c 100644 --- a/frontend/src/components/ExternalLink.tsx +++ b/frontend/src/components/ExternalLink.tsx @@ -8,7 +8,9 @@ type Props = { }; export default function ExternalLink({ to, className, children }: Props) { - const isHttpMode = window.location.protocol.startsWith("http"); + const isHttpMode = + window.location.hostname !== "wails.localhost" && + window.location.protocol.startsWith("http"); return isHttpMode ? ( { e.preventDefault(); - const isHttpMode = window.location.protocol.startsWith("http"); + const isHttpMode = + window.location.hostname !== "wails.localhost" && + window.location.protocol.startsWith("http"); try { setLoading(true); diff --git a/frontend/src/screens/setup/RestoreNode.tsx b/frontend/src/screens/setup/RestoreNode.tsx index 0cd5fd950..6ee10ee74 100644 --- a/frontend/src/screens/setup/RestoreNode.tsx +++ b/frontend/src/screens/setup/RestoreNode.tsx @@ -34,7 +34,9 @@ export function RestoreNode() { const [loading, setLoading] = useState(false); const [restored, setRestored] = useState(false); const { data: info } = useInfo(restored); - const isHttpMode = window.location.protocol.startsWith("http"); + const isHttpMode = + window.location.hostname !== "wails.localhost" && + window.location.protocol.startsWith("http"); React.useEffect(() => { if (restored && info?.setupCompleted) {