vladkrasovsky
10/26/2016 - 9:06 AM

Detecting Google Chrome js function

Detecting Google Chrome js function

/**
 * Checking is Chrome browser
 * @return {Boolean}
 */
function isChrome() {
  return (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) ? true : false;
}