From 953faa1489284655ed9d6e03bf48d39df70612c4 Mon Sep 17 00:00:00 2001 From: Lukas von Blarer Date: Fri, 4 Oct 2013 19:09:37 +0200 Subject: [PATCH] Fixing error in Firefox 3.6 --- matchMedia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matchMedia.js b/matchMedia.js index 7774538..0bfca11 100644 --- a/matchMedia.js +++ b/matchMedia.js @@ -18,7 +18,7 @@ window.matchMedia || (window.matchMedia = function() { script.parentNode.insertBefore(style, script); // 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers - info = ('getComputedStyle' in window) && window.getComputedStyle(style) || style.currentStyle; + info = ('getComputedStyle' in window) && window.getComputedStyle(style, null) || style.currentStyle; styleMedia = { matchMedium: function(media) {