-
-
Save tommcfarlin/39ef1124df6f041ccd379f7a0731d7bf to your computer and use it in GitHub Desktop.
[JavaScript] Check The User's Browser with 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
/** | |
* Check to see if Chrome or Chromium is the current user's browser. | |
* | |
* @return True if so; otherwise, false. | |
*/ | |
var _isChrome = function() | |
{ | |
return (/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment