Skip to content

Commit

Permalink
Merge pull request #49 from luksak/master
Browse files Browse the repository at this point in the history
Fixing error in Firefox 3.6
  • Loading branch information
knightdr committed Oct 4, 2013
2 parents ea49b48 + 953faa1 commit 3c67d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matchMedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3c67d9b

Please sign in to comment.