Skip to content

UriUtil.ts using window.location.port will cause error if port is 80 #250

@enghwa

Description

@enghwa

Summary

const port = IS_DEV_ENV ? WEBSOCKET_PORT_DEV : Number(window.location.port)

Steps to reproduce

ser server port at 80.

Expected behavior:

ws: url at port 80

Actual behavior:

ws url at port 0. This is due to browsers removing port 80 in window.location

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions