Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin tommcfarlin/00-is-chrome.js Secret

Created Feb 6, 2018
What would you like to do?
[JavaScript] Check The User's Browser with JavaScript
* 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
You can’t perform that action at this time.