Skip to content

Commit

Permalink
Merge pull request shipshapecode#269 from jony89/patch-1
Browse files Browse the repository at this point in the history
fixing shipshapecode#217 - performance.now is null
  • Loading branch information
TrevorBurnham authored Sep 11, 2017
2 parents 3ea9008 + 768c3b8 commit d46b391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/tether.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const position = () => {
};

function now() {
if (typeof performance !== 'undefined' && typeof performance.now !== 'undefined') {
if (performance && performance.now) {
return performance.now();
}
return +new Date;
Expand Down

0 comments on commit d46b391

Please sign in to comment.