Skip to content

Commit 4a5367d

Browse files
committed
fix(connection): use location.host over hostname
window.location.host contains the port as well and we need it
1 parent f1cfd3d commit 4a5367d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connection/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class Connection extends Emitter {
3838
constructor (url, options) {
3939
super()
4040

41-
url = url || `${wsProtocol}://${window.location.hostname}`
41+
url = url || `${wsProtocol}://${window.location.host}`
4242

4343
/**
4444
* Connection options

0 commit comments

Comments
 (0)