[FIX] report: Array.prototype.includes is ES6
This feature is in the ECMAScript-2016 specification, which is not yet fully supported by all browsers (and phantomjs).
This commit is contained in:
@@ -111,9 +111,9 @@ ActionManager.include({
|
||||
];
|
||||
trigger_download(self.session, response, c, current_action, options);
|
||||
|
||||
treated_actions.push(current_action)
|
||||
treated_actions.push(current_action);
|
||||
current_action = current_action.next_report_to_generate;
|
||||
} while (current_action != null && !treated_actions.includes(current_action))
|
||||
} while (current_action && !_.contains(treated_actions, current_action));
|
||||
//Second part of the condition for security reasons (avoids infinite loop possibilty).
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user