fix thing

This commit is contained in:
cjdenio committed 2025-10-21 22:31:58 -06:00
1 parent fa68156aa5
commit 244cf327f0
1 file changed
+6 -2
+6 -2
View File
@@ -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>