@jam3/detect
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -160,3 +160,3 @@ 'use strict'; | ||
this.browser = !this.node; | ||
this.touch = 'ontouchstart' in window || navigator.maxTouchPoints > 0; | ||
this.touch = 'ontouchstart' in detector.window || detector.window.navigator.maxTouchPoints > 0; | ||
} | ||
@@ -163,0 +163,0 @@ Object.defineProperty(Device.prototype, "orientation", { |
@@ -152,3 +152,3 @@ import bowser from 'bowser'; | ||
this.browser = !this.node; | ||
this.touch = 'ontouchstart' in window || navigator.maxTouchPoints > 0; | ||
this.touch = 'ontouchstart' in detector.window || detector.window.navigator.maxTouchPoints > 0; | ||
} | ||
@@ -155,0 +155,0 @@ Object.defineProperty(Device.prototype, "orientation", { |
{ | ||
"name": "@jam3/detect", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "User agent feature detection like Device Orientation, in App Browser Detection, etc", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
70808