Replaced .toString() instances with String()

master
Keith Irwin 2017-12-21 13:05:49 -05:00
parent 74692eba95
commit caa82bb8b3
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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
)
})