From 4d0d1da691c613dc70f8c934b75fee7120ba03bd Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Wed, 5 Mar 2025 08:54:26 -0500 Subject: [PATCH] fix: remove GlobalThis and use window instead --- src/components/PageComponents/Connect/HTTP.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }, });