Prefer Date.now() when possible

This commit is contained in:
Maximilian Krög
2021-07-02 23:01:11 +02:00
parent f506f4bdc9
commit d7d0eeb7c7
4 changed files with 4 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ fetch('data/polyline/route.json').then(function (response) {
stopAnimation(false);
} else {
animating = true;
startTime = new Date().getTime();
startTime = Date.now();
speed = speedInput.value;
startButton.textContent = 'Cancel Animation';
// hide geoMarker