mirror of
https://github.com/Djeeberjr/fw-anwesenheit.git
synced 2026-04-30 10:39:09 +00:00
change sse event listner
This commit is contained in:
@@ -18,9 +18,9 @@
|
|||||||
mapping = await fetchMapping();
|
mapping = await fetchMapping();
|
||||||
|
|
||||||
let sse = new EventSource("/api/idevent");
|
let sse = new EventSource("/api/idevent");
|
||||||
sse.onmessage = (e) => {
|
sse.addEventListener("msg", function (e) {
|
||||||
lastID = e.data;
|
lastID = e.data;
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
}
|
}
|
||||||
let csvFile = await generateCSVFile(from, to, mapping);
|
let csvFile = await generateCSVFile(from, to, mapping);
|
||||||
|
|
||||||
downloadBlob("export.csv",csvFile,"text/csv");
|
downloadBlob("export.csv", csvFile, "text/csv");
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user