Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 04e5bfb

Browse files
committedOct 2, 2015
chore(runner): make plugins optional param for createBrowser
1 parent d6aebba commit 04e5bfb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

Diff for: ‎lib/runner.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ Runner.prototype.setupGlobals_ = function(browser_) {
172172
* This is used to set up the initial protractor instances and any
173173
* future ones.
174174
*
175+
* @param {?Plugin} The plugin functions
176+
*
175177
* @return {Protractor} a protractor instance.
176178
* @public
177179
*/
@@ -183,7 +185,9 @@ Runner.prototype.createBrowser = function(plugins) {
183185
config.baseUrl, config.rootElement);
184186

185187
browser_.params = config.params;
186-
browser_.plugins_ = plugins;
188+
if (plugins) {
189+
browser_.plugins_ = plugins;
190+
}
187191
if (config.getPageTimeout) {
188192
browser_.getPageTimeout = config.getPageTimeout;
189193
}

0 commit comments

Comments
 (0)