/** * Determine if the user is using Chrome Frame. * * @return bool */ public static function checkChromeFrame() { if (strpos(self::$userAgentString, 'chromeframe') !== false) { self::$browser->setIsChromeFrame(true); return true; } return false; }
/** * Determine if the user is using Chrome Frame. * * @param Browser $browser * @param UserAgent $userAgent * @return bool */ private static function checkChromeFrame(Browser $browser, UserAgent $userAgent) { if (strpos($userAgent->getUserAgentString(), "chromeframe") !== false) { $browser->setIsChromeFrame(true); return true; } return false; }