From df557cec8093de301a8d7dea4ddca8670629c0af Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 9 Jan 2014 15:55:55 -0800 Subject: [PATCH] fix(launcher): compatibility with old launchers Add missing restart() method. --- lib/launcher.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/launcher.js b/lib/launcher.js index 7d9341055..5ac5ee170 100644 --- a/lib/launcher.js +++ b/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);