eventsource-constructor-non-same-origin.js (255B)
1 try { 2 var url = decodeURIComponent(location.hash.substr(1)) 3 var source = new EventSource(url) 4 source.onerror = function(e) { 5 postMessage([true, this.readyState, 'data' in e]) 6 this.close(); 7 } 8 } catch(e) { 9 postMessage([false, String(e)]) 10 }