Skip to content

Commit 3c67d9b

Browse files
committed
Merge pull request #49 from luksak/master
Fixing error in Firefox 3.6
2 parents ea49b48 + 953faa1 commit 3c67d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matchMedia.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ window.matchMedia || (window.matchMedia = function() {
1818
script.parentNode.insertBefore(style, script);
1919

2020
// 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers
21-
info = ('getComputedStyle' in window) && window.getComputedStyle(style) || style.currentStyle;
21+
info = ('getComputedStyle' in window) && window.getComputedStyle(style, null) || style.currentStyle;
2222

2323
styleMedia = {
2424
matchMedium: function(media) {

0 commit comments

Comments
 (0)