Last active
March 5, 2017 14:25
-
-
Save BANG88/1b50392925b71b70f42831d8784cbf19 to your computer and use it in GitHub Desktop.
window.matchMedia
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
window.matchMedia = window.matchMedia || function (mediaQuery: string): MediaQueryList { | |
return { | |
matches: false, | |
media: '', | |
addListener: function () { }, | |
removeListener: function () { } | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment