From 5276ad8a2612075da8d07f2c0635e731c17791d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Mon, 3 Nov 2014 17:10:08 +0100 Subject: [PATCH] Version problem with css-analyze --- app/public/scripts/resultsCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/public/scripts/resultsCtrl.js b/app/public/scripts/resultsCtrl.js index 39520f2..3312bfd 100644 --- a/app/public/scripts/resultsCtrl.js +++ b/app/public/scripts/resultsCtrl.js @@ -309,7 +309,7 @@ app.controller('ResultsCtrl', function ($scope) { $scope.phantomasResults.metrics.cssOldPropertyPrefixes + $scope.phantomasResults.metrics.cssUniversalSelectors * 5 + $scope.phantomasResults.metrics.cssRedundantBodySelectors + - $scope.phantomasResults.metrics.cssImports * 50; + ($scope.phantomasResults.metrics.cssImports || 0) * 50; if (score > 50) { note = 'B'; }