Do not test the length of the host value, check if it is null

This commit is contained in:
Lukas Kämmerling 2018-12-05 14:38:42 +01:00
parent 3f48a0fe50
commit 5245ba8098
1 changed files with 1 additions and 1 deletions

View File

@ -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',