mjolnir.js
Advanced tools
Comparing version
# Change Log | ||
#### [2.2.2] - June 5, 2019 | ||
- Fix undefind userAgent (#40) | ||
#### [2.1.1] - Jun 3, 2019 | ||
@@ -4,0 +7,0 @@ - fix bug where tap threshold is not working (#36) |
@@ -49,3 +49,3 @@ "use strict"; | ||
/* global window, global, document, navigator */ | ||
var userAgent = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase() : ''; | ||
var userAgent = typeof navigator !== 'undefined' && navigator.userAgent ? navigator.userAgent.toLowerCase() : ''; | ||
exports.userAgent = userAgent; | ||
@@ -52,0 +52,0 @@ var window_ = typeof window !== 'undefined' ? window : global; |
@@ -43,3 +43,3 @@ // Copyright (c) 2017 Uber Technologies, Inc. | ||
/* global window, global, document, navigator */ | ||
export var userAgent = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase() : ''; | ||
export var userAgent = typeof navigator !== 'undefined' && navigator.userAgent ? navigator.userAgent.toLowerCase() : ''; | ||
var window_ = typeof window !== 'undefined' ? window : global; | ||
@@ -46,0 +46,0 @@ var global_ = typeof global !== 'undefined' ? global : window; |
{ | ||
"name": "mjolnir.js", | ||
"description": "An Event Manager", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "hammerjs", |
@@ -45,3 +45,3 @@ // Copyright (c) 2017 Uber Technologies, Inc. | ||
/* global window, global, document, navigator */ | ||
export const userAgent = typeof navigator !== 'undefined' ? | ||
export const userAgent = (typeof navigator !== 'undefined' && navigator.userAgent) ? | ||
navigator.userAgent.toLowerCase() : ''; | ||
@@ -48,0 +48,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
153832
-3.76%46
-2.13%1
Infinity%