Skip to content

Commit 3f004f7

Browse files
author
edencoder
committed
use variable url
1 parent 19eccd8 commit 3f004f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundles/socket/public/js/bootstrap.js

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

3940
// socket on
4041
this.socket.on('connect', () => {

0 commit comments

Comments
 (0)