Maybe fix bug where nearby packages don't turn orange when alerting
This commit is contained in:
parent
a429277009
commit
37f137388b
@ -44,8 +44,16 @@ if ("geolocation" in navigator) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
playSound("alert");
|
try {
|
||||||
|
if (map != null) {
|
||||||
|
map.updatePackageLayer(packages);
|
||||||
|
}
|
||||||
|
loadPackageList();
|
||||||
|
} catch (ex) {
|
||||||
|
// It'll show up sooner or later anyways
|
||||||
|
}
|
||||||
|
|
||||||
|
playSound("alert");
|
||||||
packages[i].lastAlert = currentTimestamp;
|
packages[i].lastAlert = currentTimestamp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user