Skip to content

Commit

Permalink
fix(mqtt): skip port when unspecified, such as when connecting over d…
Browse files Browse the repository at this point in the history
…efault 80/443
  • Loading branch information
mman committed Jun 25, 2024
1 parent 493faf6 commit 241b720
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/KVNRV/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { KVNRV } from "./KVNRV"

export type AppProps = {
host: string
port: number
port: number | null
}

const App = observer((props: AppProps) => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/Marine2/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "./css/global.css"

export type AppProps = {
host: string
port: number
port: number | null
}

const App = (props: AppProps) => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/MarineApp/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Marine } from "./Marine"

export type AppProps = {
host: string
port: number
port: number | null
}

const App = observer((props: AppProps) => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const getApp = () => {
}

const host = getParameterByName("host") || window.location.hostname || "localhost"
const port = parseInt(getParameterByName("port") || window.location.port)
const port = parseInt(getParameterByName("port") || window.location.port) || null

const errorHandlerStore = initializeErrorHandlerStore()

Expand Down

0 comments on commit 241b720

Please sign in to comment.