mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-13 00:28:28 -04:00
refactor(Common.now): simplified the way to detect if Date.now is available
This commit is contained in:
parent
277187381b
commit
6b7d60f641
1 changed files with 2 additions and 1 deletions
|
@ -218,8 +218,9 @@ var Common = {};
|
|||
performance.msNow ||
|
||||
performance.oNow ||
|
||||
performance.mozNow ||
|
||||
window.Date.now ||
|
||||
function() {
|
||||
return Date.now && Date.now() || new Date().getTime();
|
||||
return new Date().getTime();
|
||||
};
|
||||
})();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue