New better duplicated DOM query counter
This commit is contained in:
@@ -59,7 +59,7 @@ app.controller('ResultsCtrl', function ($scope) {
|
||||
if ($scope.phantomasResults.offenders.DOMqueriesDuplicated) {
|
||||
var regex = /^{.*}: (\d+) queries$/;
|
||||
$scope.phantomasResults.offenders.DOMqueriesDuplicated.forEach(function(query) {
|
||||
$scope.duplicatedQueriesCountAll += parseInt(regex.exec(query)[1], 10);
|
||||
$scope.duplicatedQueriesCountAll += parseInt(regex.exec(query)[1], 10) - 1;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user