Permalink
Browse files

minor change to task doc, open browser and forget

* windows kinda weird with "explorer" command, returns status !=0 even
  though evertyhing went well.
* will probably ends up in just the display of url to open, no automatic
  browser opening
  • Loading branch information...
1 parent 7c8c42b commit 0d1ecb0535d279f5836298fcee4765868967db31 @mklabs committed Apr 23, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 tasks/docs.js
View
@@ -23,11 +23,11 @@ module.exports = function(grunt) {
var app = grunt.helper('serve', config);
app.on('start', function() {
- var open = spawn(browser, ['http://localhost:' + config.port]);
- open.on('error', function(er) { console.error(er); });
- open.on('exit', function(code) {
- if(code) grunt.warn('Something bad happend', code);
- });
+ // spawn and forget, would probably ends up with no browser opening
+ // but output to console webserver url.
+ spawn(browser, ['http://localhost:' + config.port]);
+ // windows kinda werid on explorer, getting an error code even though everything is ok
+
});
});

0 comments on commit 0d1ecb0

Please sign in to comment.