1 parent 6b26010 commit b875b96Copy full SHA for b875b96
1 file changed
matchMedia.addListener.js
@@ -1,7 +1,7 @@
1
/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */
2
(function(){
3
// monkeypatch unsupported addListener/removeListener with polling
4
- if( !window.matchMedia( "" ).addListener ){
+ if( !window.matchMedia("only screen").addListener ){
5
var oldMM = window.matchMedia;
6
7
window.matchMedia = function( q ){
0 commit comments