packages/browser-sync-ui/src/scripts/services/Pages.js
function () {
            if ($location.path() === "/") {
                return pagesConfig["overview"];
            }
            var match;
            angular.forEach(pagesConfig, function (item) {
                if (item.path === $location.path()) {
                    match = item;
                }
            });
            return match;
        }
function () {
            if ($location.path() === "/") {
                return pagesConfig["overview"];
            }
            var match;
            angular.forEach(pagesConfig, function (item) {
                if (item.path === $location.path()) {
                    match = item;
                }
            });
            return match;
        }
function ( ) { if ( $location . path ( ) === "/" ) { return pagesConfig [ "overview" ] ; } var match ; angular . forEach ( pagesConfig , function ( item ) { if ( item . path === $location . path ( ) ) { match = item ; } } ) ; return match ; }
Get the current section based on the path
@returns {*}
Get the current section based on the path