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

Commit 6a4dc7a

Browse files
devversionheathkit
authored andcommitted
fix: no longer use es6 let statement (#3963)
* Currently in Protractor v5 the Angular detection script uses ES6 features like the `let` modifier. This can break Protractor on browsers, which doesn't support those statements. > See https://saucelabs.com/beta/tests/275f75091dac40a0a3374d29d912caee/commands#11
1 parent 528338c commit 6a4dc7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/clientsidescripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ functions.waitForAngular = function(rootSelector, callback) {
137137
if (window.angular && !(window.angular.version &&
138138
window.angular.version.major > 1)) {
139139
/* ng1 */
140-
let hooks = getNg1Hooks(rootSelector);
140+
var hooks = getNg1Hooks(rootSelector);
141141
if (hooks.$$testability) {
142142
hooks.$$testability.whenStable(callback);
143143
} else if (hooks.$injector) {

0 commit comments

Comments
 (0)