Created
May 6, 2015 14:59
-
-
Save Volker-E/31514c0a9b607e70a347 to your computer and use it in GitHub Desktop.
Modern JS Browser Sniffing
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
// Taken from https://justmarkup.com/log/2015/02/26/cut-the-mustard-revisited | |
if('querySelector' in document | |
&& 'localStorage' in window | |
&& 'addEventListener' in window) { | |
// Modern browser. Let's add JavaScript functionality | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment