Created
March 1, 2016 16:03
-
-
Save alexcorvi/bf2593c63a5cdb5458ba to your computer and use it in GitHub Desktop.
detect if the browser is google chrome or not via JavaScript
This file contains 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
var is_chrome = ((navigator.userAgent.toLowerCase().indexOf('chrome') > -1) &&(navigator.vendor.toLowerCase().indexOf("google") > -1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment