Skip to content
Browse files

strict compare

  • Loading branch information...
1 parent 795df18 commit 50fb527bb353e22a56acc54fba083f1afd2fba4a Scott Jehl committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 matchMedia.js
View
2 matchMedia.js
@@ -19,7 +19,7 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
div.innerHTML = '&shy;<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';
docElem.insertBefore(fakeBody, refNode);
- bool = div.offsetWidth == 42;
+ bool = div.offsetWidth === 42;
docElem.removeChild(fakeBody);
return { matches: bool, media: q };

0 comments on commit 50fb527

Please sign in to comment.
Something went wrong with that request. Please try again.