diff --git a/.jshintrc b/.jshintrc index b354940..948f3b6 100644 --- a/.jshintrc +++ b/.jshintrc @@ -35,7 +35,8 @@ "expect", "$", "io", - "app" + "app", + "moment" ], "indent": false, // Specify indentation spacing "devel": true, // Allow development statements e.g. `console.log();`. diff --git a/lib/PeerSync.js b/lib/PeerSync.js index b0f0cc3..53ec6cf 100644 --- a/lib/PeerSync.js +++ b/lib/PeerSync.js @@ -13,7 +13,7 @@ function spec() { function PeerSync() {} PeerSync.prototype.init = function(config) { - var network = config && (config.network || "testnet"); + var network = config && (config.network || 'testnet'); this.peerdb = undefined; this.sync = new Sync({ diff --git a/public/js/controllers/index.js b/public/js/controllers/index.js index 9d56f5e..712bb88 100755 --- a/public/js/controllers/index.js +++ b/public/js/controllers/index.js @@ -24,7 +24,7 @@ angular.module('mystery.system').controller('IndexController', ['$scope', 'Globa $scope.human_since = function(time) { var m = moment.unix(time); return m.max().fromNow(); - } + }; $scope.index = function() { Blocks.get({