Do not test the length of the host value, check if it is null
This commit is contained in:
parent
3f48a0fe50
commit
5245ba8098
|
|
@ -109,7 +109,7 @@
|
|||
methods: {
|
||||
connect() {
|
||||
this.pusher = new Pusher(this.app.key, {
|
||||
wsHost: this.app.host.length === 0 ? window.location.hostname : this.app.host,
|
||||
wsHost: this.app.host === null ? window.location.hostname : this.app.host,
|
||||
wsPort: this.port,
|
||||
disableStats: true,
|
||||
authEndpoint: '/{{ request()->path() }}/auth',
|
||||
|
|
|
|||
Loading…
Reference in New Issue