Replaced .toString() instances with String()
parent
74692eba95
commit
caa82bb8b3
|
@ -15,7 +15,7 @@ module.exports = (io) => {
|
||||||
reject()
|
reject()
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
const lines = data.toString().split('\n');
|
const lines = String(data).split('\n');
|
||||||
|
|
||||||
(function sendLoc (ln) {
|
(function sendLoc (ln) {
|
||||||
if (ln > 20754) {
|
if (ln > 20754) {
|
||||||
|
|
|
@ -455,7 +455,7 @@ loadGoogleMapsAPI({ key: mapKey })
|
||||||
'&location=' + data.location.latLng.lat() + ',' + data.location.latLng.lng() +
|
'&location=' + data.location.latLng.lat() + ',' + data.location.latLng.lng() +
|
||||||
'&fov=90' + // Inclination
|
'&fov=90' + // Inclination
|
||||||
// Show direction if moving, point to user if stationary
|
// 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
|
'&key=' + mapKey
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue