fixed jshint warnings
This commit is contained in:
parent
c706deff2f
commit
89068858e6
|
@ -27,7 +27,6 @@ npm-debug.log
|
|||
.nodemonignore
|
||||
|
||||
.DS_Store
|
||||
public/lib/*
|
||||
db/txs/*
|
||||
db/txs
|
||||
db/testnet/txs/*
|
||||
|
@ -37,10 +36,4 @@ db/blocks
|
|||
db/testnet/blocks/*
|
||||
db/testnet/blocks
|
||||
|
||||
public/js/angularjs-all.js
|
||||
public/js/main.js
|
||||
public/js/vendors.js
|
||||
|
||||
public/css/main.css
|
||||
|
||||
README.html
|
||||
|
|
|
@ -34,7 +34,7 @@ module.exports = function(grunt) {
|
|||
},
|
||||
jshint: {
|
||||
all: {
|
||||
src: ['Gruntfile.js', 'insight.js', 'app/**/*.js', 'lib/*.js'],
|
||||
src: ['Gruntfile.js', 'insight.js', 'app/**/*.js', 'lib/*.js', 'config/*.js'],
|
||||
options: {
|
||||
jshintrc: true
|
||||
}
|
||||
|
|
|
@ -17,9 +17,9 @@ if (process.env.INSIGHT_NETWORK === 'livenet') {
|
|||
}
|
||||
else {
|
||||
env = 'testnet';
|
||||
db = './db/testnet',
|
||||
port = '3001',
|
||||
b_port = '18332',
|
||||
db = './db/testnet';
|
||||
port = '3001';
|
||||
b_port = '18332';
|
||||
p2p_port = '18333';
|
||||
}
|
||||
|
||||
|
@ -71,8 +71,8 @@ module.exports = {
|
|||
poolMatchFile: './etc/minersPoolStrings.json',
|
||||
|
||||
// Time to refresh the currency rate. In minutes
|
||||
currencyRefresh: 10
|
||||
, keys: {
|
||||
currencyRefresh: 10,
|
||||
keys: {
|
||||
segmentio: process.env.INSIGHT_SEGMENTIO_KEY
|
||||
}
|
||||
};
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
* Module dependencies.
|
||||
*/
|
||||
var express = require('express'),
|
||||
helpers = require('view-helpers'),
|
||||
config = require('./config')
|
||||
config = require('./config'),
|
||||
path = require('path');
|
||||
|
||||
module.exports = function(app, historicSync, peerSync) {
|
||||
|
@ -42,7 +41,7 @@ module.exports = function(app, historicSync, peerSync) {
|
|||
var staticPath = path.normalize(config.rootPath + '/../../' + process.env.INSIGHT_PUBLIC_PATH);
|
||||
|
||||
//IMPORTANT: for html5mode, this line must to be before app.router
|
||||
app.use(express.static(staticPath);
|
||||
app.use(express.static(staticPath));
|
||||
}
|
||||
|
||||
// manual helpers
|
||||
|
|
Loading…
Reference in New Issue