From 2810d6fc8f7849f4d700f14c4d19985c946dafbd Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Fri, 26 May 2017 16:07:22 +0200 Subject: [PATCH] Fetch route elevation profile on reconnect --- client/client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/client.js b/client/client.js index 134fc14a..ea2baabf 100644 --- a/client/client.js +++ b/client/client.js @@ -160,6 +160,7 @@ class Socket { return this._emit("setRoute", data).then((route) => { if(route) { // If unset, a newer submitted route has returned in the meantime this.route = route; + this.route.elevation = data.elevation; // For reconnect this.route.trackPoints = this._mergeTrackPoints({}, route.trackPoints); }