Browse Source

Use window.location.host so that websites run on non-standard ports include the port

pull/285/head
sgtwilko 2 years ago
committed by GitHub
parent
commit
fd9e327c85
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/components/PageComponents/Connect/HTTP.tsx

2
src/components/PageComponents/Connect/HTTP.tsx

@ -23,7 +23,7 @@ export const HTTP = ({ closeDialog }: TabElementProps): JSX.Element => {
window.location.hostname,
)
? "meshtastic.local"
: window.location.hostname,
: window.location.host,
tls: location.protocol === "https:",
},
});

Loading…
Cancel
Save