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

Commit 6f22d5a

Browse files
committed
fix(bootstrap): fix bootstrap for older versions of angular
Trying to use the debug label for window.name fails for versions of angular older than 1.2.24. See #3115
1 parent a618bfd commit 6f22d5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/protractor.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ var ExpectedConditions = require('./expectedConditions').ExpectedConditions;
1919
/* global angular */
2020

2121
var DEFER_LABEL = 'NG_DEFER_BOOTSTRAP!';
22-
var ENABLE_DEBUG_INFO_LABEL = 'NG_ENABLE_DEBUG_INFO!';
2322
var DEFAULT_RESET_URL = 'data:text/html,<html></html>';
2423
var DEFAULT_GET_PAGE_TIMEOUT = 10000;
2524

@@ -640,7 +639,7 @@ Protractor.prototype.get = function(destination, opt_timeout) {
640639

641640
this.driver.get(this.resetUrl).then(null, deferred.reject);
642641
this.executeScript_(
643-
'window.name = "' + ENABLE_DEBUG_INFO_LABEL + DEFER_LABEL + '" + window.name;' +
642+
'window.name = "' + DEFER_LABEL + '" + window.name;' +
644643

645644
'window.location.replace("' + destination + '");',
646645
msg('reset url'))

0 commit comments

Comments
 (0)