/ chrome

Detect Chrome

Had to fix an issue that appeared only in Chrome. Here's a snippet for detecting Chrome.

if ($.browser.chrome || navigator.userAgent.match('CriOS')) {
}

The first condition checks for Chrome desktop (requires jQuery). The second checks for Chrome in iOS.

Detect Chrome
Share this