detect-hover
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 detectHover = { | ||
update: function update() { | ||
if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') { | ||
if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && typeof window.matchMedia === 'function') { | ||
detectHover.hover = window.matchMedia('(hover: hover)').matches; | ||
@@ -11,0 +14,0 @@ detectHover.none = window.matchMedia('(hover: none)').matches || window.matchMedia('(hover: on-demand)').matches; |
{ | ||
"name": "detect-hover", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "JavaScript wrapper for hover and any-hover media queries", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
const detectHover = { | ||
update() { | ||
if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') { | ||
if (typeof window === 'object' && typeof window.matchMedia === 'function') { | ||
detectHover.hover = window.matchMedia('(hover: hover)').matches; | ||
@@ -5,0 +5,0 @@ detectHover.none = ( |
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
7794
5
34
0
94