laravel-echo
Advanced tools
Comparing version 0.0.28 to 0.1.0
@@ -75,4 +75,4 @@ var classCallCheck = function (instance, Constructor) { | ||
host: null, | ||
namespace: null, | ||
pusherKey: null | ||
key: null, | ||
namespace: null | ||
}; | ||
@@ -96,3 +96,5 @@ this.setOptions(options); | ||
var selector = document.querySelector('meta[name="csrf-token"]'); | ||
if (this.options.csrfToken) { | ||
if (window.Laravel && window.Laravel.csrfToken) { | ||
return window.Laravel.csrfToken; | ||
} else if (this.options.csrfToken) { | ||
return this.options.csrfToken; | ||
@@ -319,3 +321,3 @@ } else if (selector) { | ||
value: function connect() { | ||
this.pusher = new Pusher(this.options.pusherKey, this.options); | ||
this.pusher = new Pusher(this.options.key, this.options); | ||
} | ||
@@ -322,0 +324,0 @@ }, { |
{ | ||
"name": "laravel-echo", | ||
"version": "0.0.28", | ||
"version": "0.1.0", | ||
"description": "Laravel Echo library for beautiful Pusher integration", | ||
@@ -5,0 +5,0 @@ "main": "dist/echo.js", |
122077
2768