mirror of
https://github.com/bilde2910/Hauk.git
synced 2026-01-23 02:24:09 +00:00
Merge pull request #158 from maximbaz/fix-showing-initial-active-users
Fix showing initial active users
This commit is contained in:
commit
bc2e9fdcce
1 changed files with 2 additions and 1 deletions
|
|
@ -682,7 +682,6 @@ function processUpdate(data, init) {
|
|||
|
||||
// Get the last location received.
|
||||
var lastPoint = shares[user].points.length > 0 ? shares[user].points[shares[user].points.length - 1] : null;
|
||||
if (lastPoint !== null) shares[user].listEntry.style.display = "block";
|
||||
|
||||
for (var i = 0; i < users[user].length; i++) {
|
||||
var lat = users[user][i][0];
|
||||
|
|
@ -744,6 +743,8 @@ function processUpdate(data, init) {
|
|||
}
|
||||
}
|
||||
|
||||
if (lastPoint !== null) shares[user].listEntry.style.display = "block";
|
||||
|
||||
var eVelocity = document.getElementById("velocity-" + shares[user].id)
|
||||
var vel = 0;
|
||||
if (lastPoint !== null && lastPoint.spd !== null && eVelocity !== null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue