Maybe fix bug where nearby packages don't turn orange when alerting

This commit is contained in:
Skylar Ittner 2019-08-23 19:23:46 -06:00
parent a429277009
commit 37f137388b

View File

@ -44,8 +44,16 @@ if ("geolocation" in navigator) {
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;
}
}