From caa82bb8b301d08690ec4962f61902d042afcc6f Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Thu, 21 Dec 2017 13:05:49 -0500 Subject: [PATCH] Replaced .toString() instances with String() --- config/demo.js | 2 +- static/js/map.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/demo.js b/config/demo.js index ee3ada3..3dc88d8 100644 --- a/config/demo.js +++ b/config/demo.js @@ -15,7 +15,7 @@ module.exports = (io) => { reject() } else { - const lines = data.toString().split('\n'); + const lines = String(data).split('\n'); (function sendLoc (ln) { if (ln > 20754) { diff --git a/static/js/map.js b/static/js/map.js index b0a45f2..d21b674 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -455,7 +455,7 @@ loadGoogleMapsAPI({ key: mapKey }) '&location=' + data.location.latLng.lat() + ',' + data.location.latLng.lng() + '&fov=90' + // Inclination // Show direction if moving, point to user if stationary - '&heading=' + ((loc.spd > 2) ? loc.dir : getBearing(loc, data.location)).toString() + + '&heading=' + ((loc.spd > 2) ? loc.dir : String(getBearing(loc, data.location))) + '&key=' + mapKey ) })