navigator.sendbeacon
Advanced tools
Comparing version 0.0.10 to 0.0.11
{ | ||
"name": "navigator.sendbeacon", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Polyfill for navigator.sendBeacon()", | ||
@@ -5,0 +5,0 @@ "main": "dist/navigator.sendbeacon.cjs.js", |
@@ -15,4 +15,4 @@ const isString = val => typeof val === 'string'; | ||
function sendBeacon(url, data) { | ||
var event = this.event && this.event.type; | ||
var sync = event === 'unload' || event === 'beforeunload'; | ||
const event = this.event && this.event.type; | ||
const sync = event === 'unload' || event === 'beforeunload'; | ||
@@ -19,0 +19,0 @@ const xhr = ('XMLHttpRequest' in this) ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP'); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12389
0