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

@@ -120,7 +120,7 @@ function animateFlights(event) {
function addLater(feature, timeout) {
window.setTimeout(function () {
feature.set('start', new Date().getTime());
feature.set('start', Date.now());
flightsSource.addFeature(feature);
}, timeout);
}