source/class/core/detect/Browser.js
Avoid deeply nested control flow statements. Open
Open
if (agent.indexOf("mobile/") != -1) {
mobile = true;
}
Avoid deeply nested control flow statements. Open
Open
else if ((global.chrome || global.chromium) && (/opr\/([0-9.]+)/.exec(agent) || /(chrome)\/([0-9.]+)/.exec(agent)))
{
if (RegExp.$2)
{
name = "chrome";