mirror of https://github.com/MISP/misp-dashboard
Added location reload if eventSource loose connection
parent
14103fb0a7
commit
13305e627f
|
@ -114,7 +114,8 @@ $(document).ready(function () {
|
|||
};
|
||||
|
||||
source_log.onerror = function(){
|
||||
//console.log('error: '+source_log.readyState);
|
||||
console.log('error: '+source_log.readyState);
|
||||
setTimeout(function() { location.reload(); }, 5000);
|
||||
};
|
||||
|
||||
source_log.onmessage = function(event) {
|
||||
|
|
|
@ -171,5 +171,6 @@ source_map.onopen = function(){
|
|||
console.log('connection is opened. '+source_map.readyState);
|
||||
};
|
||||
source_map.onerror = function(){
|
||||
console.log('error: '+source_map.readyState);
|
||||
console.log('error: '+source_map.readyState);
|
||||
setTimeout(function() { location.reload(); }, 5000);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue