fix pusher auth endpoint path (#674)

convert static string to template string to use the variable
This commit is contained in:
Fiete Börner 2017-10-28 00:49:08 +02:00 committed by Phan An
parent c970481f19
commit 28a98089b5

View file

@ -14,7 +14,7 @@ export const socket = {
}
this.pusher = new Pusher(window.PUSHER_APP_KEY, {
authEndpoint: '${window.BASE_URL}api/broadcasting/auth',
authEndpoint: `${window.BASE_URL}api/broadcasting/auth`,
auth: {
headers: {
Authorization: `Bearer ${ls.get('jwt-token')}`