Skip to content

Commit

Permalink
fix(launcher): compatibility with old launchers
Browse files Browse the repository at this point in the history
Add missing restart() method.
  • Loading branch information
vojtajina committed Jan 11, 2014
1 parent e7e4c3e commit df557ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ var Launcher = function(emitter, injector) {
});
return deferred.promise;
};

browser.restart = function() {
var self = this;
this.kill(function() {
self.start(url);
});
};
}

log.info('Starting browser %s', browser.name);
Expand Down

0 comments on commit df557ce

Please sign in to comment.