Commit 6e040b62 authored by yPhil's avatar yPhil
Browse files

Code cleanup

parent 8002b121
...@@ -38,7 +38,7 @@ git clone https://framagit.org/yphil/petrolette ...@@ -38,7 +38,7 @@ git clone https://framagit.org/yphil/petrolette
cd petrolette cd petrolette
npm install npm install
npm start npm start
firefox http://localhost:8000 firefox http://localhost:8080
``` ```
......
...@@ -13,7 +13,7 @@ const express = require('express'), ...@@ -13,7 +13,7 @@ const express = require('express'),
require('events').EventEmitter.defaultMaxListeners = 15; require('events').EventEmitter.defaultMaxListeners = 15;
console.log('####### START'); console.log('####### START ## Version (%s)', pjson.version);
process.on('uncaughtException', function(err) { process.on('uncaughtException', function(err) {
console.log('### uncaughtException (%s) : ', err); console.log('### uncaughtException (%s) : ', err);
...@@ -34,7 +34,7 @@ function escape(s) { ...@@ -34,7 +34,7 @@ function escape(s) {
router.get('/', function(req, res) { router.get('/', function(req, res) {
res.render('index', { res.render('index', {
queryString:escape(req.query.add), queryString: escape(req.query.add),
version: pjson.version version: pjson.version
}); });
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment