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.
vojtajina committed Jan 11, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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.