diff --git a/static/js/app.js b/static/js/app.js index a74d7f5..270d37a 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -224,9 +224,9 @@ }; $document.bind('keydown', function ($event) { - if ($event.keyCode == 27) { + if ($event.keyCode === 27) { $rootScope.sidebar = false; - $rootScope.$digest() + $rootScope.$digest(); } }); diff --git a/static/js/directives/block.js b/static/js/directives/block.js index 1ef4fb1..d8ae158 100644 --- a/static/js/directives/block.js +++ b/static/js/directives/block.js @@ -79,7 +79,7 @@ * @return {String} A radom haxa color from `colors` */ $scope.color = function () { - return colors[Math.floor(Math.random() * colors.length)] + return colors[Math.floor(Math.random() * colors.length)]; }; }] };