Permalink
Browse files

fix(launcher): compatibility with old launchers

Add missing restart() method.
  • Loading branch information...
1 parent e7e4c3e commit df557cec8093de301a8d7dea4ddca8670629c0af @vojtajina vojtajina committed Jan 9, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/launcher.js
View
7 lib/launcher.js
@@ -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);

0 comments on commit df557ce

Please sign in to comment.