Skip to content

Commit 4b3f032

Browse files
committed
Merge pull request #403 from sfeast/issue-35
Workaround for window.performance not being available on mobile safari
2 parents 0b5ef9d + 73b5720 commit 4b3f032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tick.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
} else {
7878
var now = function() {
7979
if (_now == undefined)
80-
_now = performance.now();
80+
_now = window.performance && performance.now ? performance.now() : Date.now();
8181
return _now;
8282
};
8383
}

0 commit comments

Comments
 (0)