Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 78408bb

Browse files
authored
fix: Use var instead of const in demos/ready.js (#2343)
Safari 9.x and IE 10 do not support `const`, and `ready.js` is not transpiled to ES5.
1 parent 49a9449 commit 78408bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/ready.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ window.demoReady = (function(root) {
7979
return;
8080
}
8181

82-
const elapsedTimeMs = Date.now() - startTimeMs;
82+
var elapsedTimeMs = Date.now() - startTimeMs;
8383
if (elapsedTimeMs > POLL_MAX_WAIT_MS) {
8484
clearInterval(pollTimer);
8585
removeDetectionDom();

0 commit comments

Comments
 (0)