Skip to content

Commit 19eccd8

Browse files
author
edencoder
committed
use hostname
1 parent c6a569b commit 19eccd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/socket/public/js/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class SocketStore {
3434
*/
3535
async build() {
3636
// Run socket
37-
this.socket = io.connect(store.get('config').socket.url, store.get('config').socket.params);
37+
this.socket = io.connect(`//${window.location.hostname}`, store.get('config.socket.params') || {});
3838

3939
// socket on
4040
this.socket.on('connect', () => {

0 commit comments

Comments
 (0)