mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-08-04 22:06:34 +00:00
fix thing
This commit is contained in:
+6
-2
@@ -53,7 +53,7 @@
|
||||
}
|
||||
|
||||
protobuf.load("/schema.proto").then((root) => {
|
||||
setInterval(async () => {
|
||||
async function reload() {
|
||||
const bin = await fetch("/api").then((r) => r.arrayBuffer());
|
||||
const { vehicles } = root
|
||||
.lookupType("VehicleFeed")
|
||||
@@ -75,7 +75,11 @@
|
||||
)
|
||||
);
|
||||
});
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
reload();
|
||||
|
||||
setInterval(reload, 5000);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user