Skip to content

Commit

Permalink
Fix websocket port handling (streamlit#263)
Browse files Browse the repository at this point in the history
* handle websocket port differently

* remove streamlit whl
  • Loading branch information
jrhone authored and tvst committed Oct 4, 2019
1 parent f3bcf40 commit 9e4edd3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/lib/UriUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ export function getWindowBaseUriParts(): BaseUriParts {
// server's port 3000.
// If changed, also change config.py
const host = window.location.hostname
const port = IS_DEV_ENV ? WEBSOCKET_PORT_DEV : Number(window.location.port)
const port = IS_DEV_ENV
? WEBSOCKET_PORT_DEV
: window.location.port
? Number(window.location.port)
: isHttps()
? 443
: 80
return { host, port }
}

Expand Down

0 comments on commit 9e4edd3

Please sign in to comment.