We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3831c13 + 4733f16 commit 069d5b1Copy full SHA for 069d5b1
test/unit/testreporter.js
@@ -40,7 +40,7 @@ const TestReporter = function (browser) {
40
}
41
42
this.now = function () {
43
- return new Date().getTime();
+ return Date.now();
44
};
45
46
this.jasmineStarted = function (suiteInfo) {
web/pdf_presentation_mode.js
@@ -102,7 +102,7 @@ class PDFPresentationMode {
102
evt.preventDefault();
103
104
const delta = normalizeWheelEventDelta(evt);
105
- const currentTime = new Date().getTime();
+ const currentTime = Date.now();
106
const storedTime = this.mouseScrollTimeStamp;
107
108
// If we've already switched page, avoid accidentally switching again.
0 commit comments