Fixed SSE error after export (Safari)

This commit is contained in:
l_samenv
2024-08-29 08:58:28 +02:00
parent fcee45817f
commit d03fcca8cc
3 changed files with 5 additions and 2 deletions

View File

@ -64,7 +64,7 @@ function handleUpdateMessage(src, message) {
console.log("%cfrom server (SSE): " + message.type,
"color:white;background:lightgray", message);
}
// console.log(message.type, "at", new Date())
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// <---------------------------------------------------------------------------------BUG!!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

View File

@ -292,6 +292,7 @@ function exportCallback(selectedVariables, startDateTimeMs, endDateTimeMs, nan,
let exportURL = "http://" + hostPort + "/export?time=" + startDateTimeMs/1000 + "," + endDateTimeMs/1000 + "&variables=" + selectedVariables + "&nan=" + nan + "&interval=" + binningParam + "&id=" + clientID
let a = document.createElement('a');
a.href = exportURL
a.download = true
a.click()
}