Skip to content

Commit

Permalink
fix: Use var instead of const in demos/ready.js (#2343)
Browse files Browse the repository at this point in the history
Safari 9.x and IE 10 do not support `const`, and `ready.js` is not transpiled to ES5.
  • Loading branch information
acdvorak committed Mar 5, 2018
1 parent 49a9449 commit 78408bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ window.demoReady = (function(root) {
return;
}

const elapsedTimeMs = Date.now() - startTimeMs;
var elapsedTimeMs = Date.now() - startTimeMs;
if (elapsedTimeMs > POLL_MAX_WAIT_MS) {
clearInterval(pollTimer);
removeDetectionDom();
Expand Down

0 comments on commit 78408bb

Please sign in to comment.