fix: parse mqtt pathname - fixed #1959
This commit is contained in:
parent
48a6c87d9d
commit
8f9bb621b8
1 changed files with 3 additions and 1 deletions
|
|
@ -244,7 +244,9 @@ export default defineComponent({
|
|||
]
|
||||
const parseUrl = new URL(this.url)
|
||||
this.client = new Paho.Client(
|
||||
parseUrl.hostname,
|
||||
`${parseUrl.hostname}${
|
||||
parseUrl.pathname !== "/" ? parseUrl.pathname : ""
|
||||
}`,
|
||||
parseUrl.port !== "" ? Number(parseUrl.port) : 8081,
|
||||
"hoppscotch"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue