change sse event listner

This commit is contained in:
Djeeberjr 2025-10-28 16:08:24 +01:00
parent f22eb91b67
commit 8100748f8a

View File

@ -18,9 +18,9 @@
mapping = await fetchMapping();
let sse = new EventSource("/api/idevent");
sse.onmessage = (e) => {
sse.addEventListener("msg", function (e) {
lastID = e.data;
};
});
});
</script>
@ -74,7 +74,7 @@
}
let csvFile = await generateCSVFile(from, to, mapping);
downloadBlob("export.csv",csvFile,"text/csv");
downloadBlob("export.csv", csvFile, "text/csv");
}}
/>
</main>