sebastian-software/core

View on GitHub
source/class/core/detect/Browser.js

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

      if (agent.indexOf("mobile/") != -1) {
        mobile = true;
      }
Severity: Major
Found in source/class/core/detect/Browser.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

        else if ((global.chrome || global.chromium) && (/opr\/([0-9.]+)/.exec(agent) || /(chrome)\/([0-9.]+)/.exec(agent)))
        {
          if (RegExp.$2)
          {
            name = "chrome";
    Severity: Major
    Found in source/class/core/detect/Browser.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status