Skip to content

Instantly share code, notes, and snippets.

@BANG88
Last active March 5, 2017 14:25
Show Gist options
  • Save BANG88/1b50392925b71b70f42831d8784cbf19 to your computer and use it in GitHub Desktop.
Save BANG88/1b50392925b71b70f42831d8784cbf19 to your computer and use it in GitHub Desktop.
window.matchMedia
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