refresh 3

This commit is contained in:
2025-11-09 18:52:52 +01:00
parent 0cd0c6de41
commit b60fdfced4

View File

@@ -726,6 +726,15 @@
});
});
// Clean up SSE connection before page unload
window.addEventListener('beforeunload', () => {
if (eventSource) {
console.log('Closing SSE connection before unload');
eventSource.close();
eventSource = null;
}
});
// API_BASE injected from backend (supports Docker/K8s environments)
window.API_BASE = '{{ api_base }}';