Skip to content

Commit bcc93c9

Browse files
committed
Merge pull request #262 from rasteiner/master
android 4.3 has no performance.now
2 parents 09f2fb2 + a07798d commit bcc93c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tick.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050

5151
function InternalTimeline() {
5252
this._players = [];
53-
this.currentTime = window.performance ? performance.now() : 0;
53+
// Android 4.3 browser has window.performance, but not window.performance.now
54+
this.currentTime = window.performance && performance.now ? performance.now() : 0;
5455
};
5556

5657
InternalTimeline.prototype = {

0 commit comments

Comments
 (0)