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

Commit

Permalink
chore(runner): make plugins optional param for createBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
sjelin committed Oct 2, 2015
1 parent d6aebba commit 04e5bfb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ Runner.prototype.setupGlobals_ = function(browser_) {
* This is used to set up the initial protractor instances and any
* future ones.
*
* @param {?Plugin} The plugin functions
*
* @return {Protractor} a protractor instance.
* @public
*/
Expand All @@ -183,7 +185,9 @@ Runner.prototype.createBrowser = function(plugins) {
config.baseUrl, config.rootElement);

browser_.params = config.params;
browser_.plugins_ = plugins;
if (plugins) {
browser_.plugins_ = plugins;
}
if (config.getPageTimeout) {
browser_.getPageTimeout = config.getPageTimeout;
}
Expand Down

0 comments on commit 04e5bfb

Please sign in to comment.