detect-pointer
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,5 +6,8 @@ 'use strict'; | ||
}); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var detectPointer = { | ||
update: function update() { | ||
if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') { | ||
if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && typeof window.matchMedia === 'function') { | ||
detectPointer.fine = window.matchMedia('(pointer: fine)').matches; | ||
@@ -11,0 +14,0 @@ detectPointer.coarse = window.matchMedia('(pointer: coarse)').matches; |
{ | ||
"name": "detect-pointer", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "JavaScript wrapper for pointer and any-pointer media queries", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
const detectPointer = { | ||
update() { | ||
if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') { | ||
if (typeof window === 'object' && typeof window.matchMedia === 'function') { | ||
detectPointer.fine = window.matchMedia('(pointer: fine)').matches; | ||
@@ -5,0 +5,0 @@ detectPointer.coarse = window.matchMedia('(pointer: coarse)').matches; |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
7442
5
32
0
96