Commit 9c142aa2 by Johannes Edmeier

Add workaround for chrome not displaying journal

Chrome dosesn't send parallel requests for the same url. To circumvent that behavior add a dummy request-parameter to the event-stream url. Otherwise the journal section shows no content on chrome while doing the sse long polling
parent 582185a8
......@@ -162,7 +162,7 @@ springBootAdmin.run(function ($rootScope, $state, $log, $filter, Notification, A
//setups up the sse-reciever
var journalEventSource = new EventSource('api/journal');
var journalEventSource = new EventSource('api/journal?stream');
journalEventSource.onmessage = function(message) {
var event = JSON.parse(message.data);
Object.setPrototypeOf(event.application, Application.prototype);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment