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