laravel-echo
Advanced tools
Comparing version 1.6.0 to 1.6.1
# Release Notes | ||
## [Unreleased](https://github.com/laravel/echo/compare/v1.6.0...master) | ||
## [Unreleased](https://github.com/laravel/echo/compare/v1.6.1...master) | ||
## [v1.6.1 (2019-10-01)](https://github.com/laravel/echo/compare/v1.6.0...v1.6.1) | ||
### Fixed | ||
- Change check for 'querySelector' method for browser compatibility ([#253](https://github.com/laravel/echo/pull/253)) | ||
## [v1.6.0 (2019-09-24)](https://github.com/laravel/echo/compare/v1.5.4...v1.6.0) | ||
@@ -7,0 +13,0 @@ |
@@ -115,3 +115,3 @@ 'use strict'; | ||
return this.options.csrfToken; | ||
} else if (typeof document !== 'undefined' && document.hasOwnProperty('querySelector') && (selector = document.querySelector('meta[name="csrf-token"]'))) { | ||
} else if (typeof document !== 'undefined' && typeof document.querySelector === 'function' && (selector = document.querySelector('meta[name="csrf-token"]'))) { | ||
return selector.getAttribute('content'); | ||
@@ -118,0 +118,0 @@ } |
@@ -116,3 +116,3 @@ var Echo = (function () { | ||
return this.options.csrfToken; | ||
} else if (typeof document !== 'undefined' && document.hasOwnProperty('querySelector') && (selector = document.querySelector('meta[name="csrf-token"]'))) { | ||
} else if (typeof document !== 'undefined' && typeof document.querySelector === 'function' && (selector = document.querySelector('meta[name="csrf-token"]'))) { | ||
return selector.getAttribute('content'); | ||
@@ -119,0 +119,0 @@ } |
@@ -113,3 +113,3 @@ var classCallCheck = function (instance, Constructor) { | ||
return this.options.csrfToken; | ||
} else if (typeof document !== 'undefined' && document.hasOwnProperty('querySelector') && (selector = document.querySelector('meta[name="csrf-token"]'))) { | ||
} else if (typeof document !== 'undefined' && typeof document.querySelector === 'function' && (selector = document.querySelector('meta[name="csrf-token"]'))) { | ||
return selector.getAttribute('content'); | ||
@@ -116,0 +116,0 @@ } |
{ | ||
"name": "laravel-echo", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Laravel Echo library for beautiful Pusher and Socket.IO integration", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -57,3 +57,3 @@ import { Channel, PresenceChannel } from './../channel'; | ||
typeof document !== 'undefined' && | ||
document.hasOwnProperty('querySelector') && | ||
typeof document.querySelector === 'function' && | ||
(selector = document.querySelector('meta[name="csrf-token"]')) | ||
@@ -60,0 +60,0 @@ ) { |
161382