From ada976c4fb3c228168f4326dc76d2adcf6ac327e Mon Sep 17 00:00:00 2001 From: Brad Metcalf Date: Wed, 1 Apr 2015 00:17:50 -0500 Subject: [PATCH] Removed GET check, no longer needed at this point --- php-webkit/main.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/php-webkit/main.js b/php-webkit/main.js index ee5b7b2..1fe1c90 100644 --- a/php-webkit/main.js +++ b/php-webkit/main.js @@ -54,19 +54,12 @@ var server = http.createServer(app); app.use('/', php.cgi(phpinfo)); -server.listen(port, host, function(){ +server.listen(port, host, function(res){ var url = 'http://'+host+':'+server.address().port+'/'; - - http.get(url, function(res) { - if(res.statusCode == 200) { - changeState('Starting application...', '#00CD00'); - } else { - changeState('Starting application with error code '+res.statusCode, '#FCD116'); - } - window.location = url; - }).on('error', function(e) { - changeState('ERROR: '+e.message+'', '#CD0000'); - }); + changeState('Starting application...', '#00CD00'); + window.location = url; +}).on('error', function(e) { + changeState('ERROR: '+e.message+'', '#CD0000'); }); function changeState(msg, color){