Removed undefined token from listen callback
This commit is contained in:
parent
ada976c4fb
commit
a9d2ea736e
1 changed files with 2 additions and 2 deletions
|
|
@ -54,12 +54,12 @@ var server = http.createServer(app);
|
||||||
|
|
||||||
app.use('/', php.cgi(phpinfo));
|
app.use('/', php.cgi(phpinfo));
|
||||||
|
|
||||||
server.listen(port, host, function(res){
|
server.listen(port, host, function(){
|
||||||
var url = 'http://'+host+':'+server.address().port+'/';
|
var url = 'http://'+host+':'+server.address().port+'/';
|
||||||
changeState('Starting application...', '#00CD00');
|
changeState('Starting application...', '#00CD00');
|
||||||
window.location = url;
|
window.location = url;
|
||||||
}).on('error', function(e) {
|
}).on('error', function(e) {
|
||||||
changeState('<strong>ERROR: '+e.message+'</strong>', '#CD0000');
|
changeState('<strong>Error: '+e.message+'</strong>', '#CD0000');
|
||||||
});
|
});
|
||||||
|
|
||||||
function changeState(msg, color){
|
function changeState(msg, color){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue