We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea49b48 commit 953faa1Copy full SHA for 953faa1
matchMedia.js
@@ -18,7 +18,7 @@ window.matchMedia || (window.matchMedia = function() {
18
script.parentNode.insertBefore(style, script);
19
20
// 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers
21
- info = ('getComputedStyle' in window) && window.getComputedStyle(style) || style.currentStyle;
+ info = ('getComputedStyle' in window) && window.getComputedStyle(style, null) || style.currentStyle;
22
23
styleMedia = {
24
matchMedium: function(media) {
0 commit comments