mirror of
				https://github.com/Djeeberjr/fw-anwesenheit.git
				synced 2025-11-04 07:34:10 +00:00 
			
		
		
		
	change sse event listner
This commit is contained in:
		
							parent
							
								
									f22eb91b67
								
							
						
					
					
						commit
						8100748f8a
					
				@ -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>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user