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

Commit

Permalink
fix: no longer use es6 let statement (#3963)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
devversion authored and heathkit committed Jan 12, 2017
1 parent 528338c commit 6a4dc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clientsidescripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ functions.waitForAngular = function(rootSelector, callback) {
if (window.angular && !(window.angular.version &&
window.angular.version.major > 1)) {
/* ng1 */
let hooks = getNg1Hooks(rootSelector);
var hooks = getNg1Hooks(rootSelector);
if (hooks.$$testability) {
hooks.$$testability.whenStable(callback);
} else if (hooks.$injector) {
Expand Down

0 comments on commit 6a4dc7a

Please sign in to comment.