refresh 3
This commit is contained in:
@@ -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)
|
// API_BASE injected from backend (supports Docker/K8s environments)
|
||||||
window.API_BASE = '{{ api_base }}';
|
window.API_BASE = '{{ api_base }}';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user