Skip to content

Commit

Permalink
fix array includes in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Sajnóg committed Jun 28, 2016
1 parent dcea6bc commit 8de0225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/aos.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const init = function init(settings) {
* Handle initializing
*/
if (options.startEvent === 'DOMContentLoaded' &&
['complete', 'interactive'].includes(document.readyState)) {
['complete', 'interactive'].indexOf(document.readyState) > -1) {
// Initialize AOS if default startEvent was already fired
refresh(true);
} else {
Expand Down

0 comments on commit 8de0225

Please sign in to comment.