Skip to content

Commit

Permalink
Merge pull request #3022 from kjhollen/fix-2797
Browse files Browse the repository at this point in the history
fixes #2797 by removing window.performance.now shim
  • Loading branch information
kjhollen authored Jun 18, 2018
2 parents b2d8980 + fccf070 commit 6c47bbe
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/core/shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@ window.requestAnimationFrame = (function() {
);
})();

// use window.performance() to get max fast and accurate time in milliseconds
window.performance = window.performance || {};
window.performance.now = (function() {
var load_date = Date.now();
return (
window.performance.now ||
window.performance.mozNow ||
window.performance.msNow ||
window.performance.oNow ||
window.performance.webkitNow ||
function() {
return Date.now() - load_date;
}
);
})();

/**
* shim for Uint8ClampedArray.slice
* (allows arrayCopy to work with pixels[])
Expand Down

0 comments on commit 6c47bbe

Please sign in to comment.