Last active
August 29, 2015 14:14
-
-
Save dcalhoun/41434bee197970b5b9e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WebKit | |
window.matchMedia('(min-width: ' + document.width + 'px)').matches // true | |
// Every other browser engine | |
window.matchMedia('(min-width: ' + document.width + 'px)').matches // false | |
// Somewhat outdated explanation | |
// http://www.sitepoint.com/rwd-scrollbars-is-chrome-better/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment