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){