matchmediaquery
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -7,5 +7,5 @@ 'use strict'; | ||
// our fake MediaQueryList | ||
function Mql(query, values){ | ||
function Mql(query, values, forceStatic){ | ||
var self = this; | ||
if(dynamicMatch){ | ||
if(dynamicMatch && !forceStatic){ | ||
var mql = dynamicMatch.call(window, query); | ||
@@ -50,6 +50,6 @@ this.matches = mql.matches; | ||
function matchMedia(query, values){ | ||
return new Mql(query, values); | ||
function matchMedia(query, values, forceStatic){ | ||
return new Mql(query, values, forceStatic); | ||
} | ||
module.exports = matchMedia; |
{ | ||
"name": "matchmediaquery", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Media queries for your client and server", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4720
6