mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #12984 from Snuffleupagus/more-Date-now
Replace a few `new Date().getTime()` instances with `Date.now()`
This commit is contained in:
commit
069d5b1086
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ const TestReporter = function (browser) {
|
|||
}
|
||||
|
||||
this.now = function () {
|
||||
return new Date().getTime();
|
||||
return Date.now();
|
||||
};
|
||||
|
||||
this.jasmineStarted = function (suiteInfo) {
|
||||
|
|
|
@ -102,7 +102,7 @@ class PDFPresentationMode {
|
|||
evt.preventDefault();
|
||||
|
||||
const delta = normalizeWheelEventDelta(evt);
|
||||
const currentTime = new Date().getTime();
|
||||
const currentTime = Date.now();
|
||||
const storedTime = this.mouseScrollTimeStamp;
|
||||
|
||||
// If we've already switched page, avoid accidentally switching again.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue