(function () { "use strict"; if (typeof EventSource === "undefined") { return; } var source = new EventSource("/events"); source.onmessage = function () { location.reload(); }; })();