diff --git a/src/components/PageComponents/Connect/HTTP.tsx b/src/components/PageComponents/Connect/HTTP.tsx index 263bff70..092b79bf 100644 --- a/src/components/PageComponents/Connect/HTTP.tsx +++ b/src/components/PageComponents/Connect/HTTP.tsx @@ -26,10 +26,10 @@ export const HTTP = ({ closeDialog }: TabElementProps) => { const { control, handleSubmit, register } = useForm({ defaultValues: { ip: ["client.meshtastic.org", "localhost"].includes( - globalThis.location.hostname, + window.location.hostname, ) ? "meshtastic.local" - : globalThis.location.host, + : window.location.host, tls: isURLHTTPS ? true : false, }, });