Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
fix(connection): use location.host over hostname
Browse files Browse the repository at this point in the history
window.location.host contains the port as well and we need it
  • Loading branch information
thetutlage committed Mar 21, 2018
1 parent f1cfd3d commit 4a5367d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class Connection extends Emitter {
constructor (url, options) {
super()

url = url || `${wsProtocol}://${window.location.hostname}`
url = url || `${wsProtocol}://${window.location.host}`

/**
* Connection options
Expand Down

0 comments on commit 4a5367d

Please sign in to comment.