aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/formatter.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-14 22:37:38 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-14 22:37:38 -0700
commitfc990dcc50650862c4f12a1a530b98bbd36ea4b8 (patch)
tree8bd7446da64bc906657a28a72f7fae183f01513a /modern/src/common/formatter.js
parent5b1d69ef52e9200c35bf8986c265a42be7cf23cf (diff)
downloadtrackermap-web-fc990dcc50650862c4f12a1a530b98bbd36ea4b8.tar.gz
trackermap-web-fc990dcc50650862c4f12a1a530b98bbd36ea4b8.tar.bz2
trackermap-web-fc990dcc50650862c4f12a1a530b98bbd36ea4b8.zip
Add location and battery level
Diffstat (limited to 'modern/src/common/formatter.js')
-rw-r--r--modern/src/common/formatter.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/common/formatter.js b/modern/src/common/formatter.js
index 50841e15..9a61b178 100644
--- a/modern/src/common/formatter.js
+++ b/modern/src/common/formatter.js
@@ -10,6 +10,8 @@ const formatValue = (key, value) => {
case 'speed':
case 'course':
return value.toFixed(1);
+ case 'batteryLevel':
+ return value + '%';
default:
return value;
}