use Modernizr to check whether websockets and server send events are supported

This commit is contained in:
Ralf Teusner
2015-10-16 17:10:50 +02:00
parent 1ce4822732
commit 8e8efcb8cc
2 changed files with 5 additions and 2 deletions

View File

@ -682,8 +682,8 @@ $(function() {
};
var isBrowserSupported = function() {
// todo event streams are no longer required with websockets
return window.EventSource !== undefined;
// eventsource tests for server send events (used for scoring), websockets is used for run
return Modernizr.eventsource && Modernizr.websockets;
};
var populatePanel = function(panel, result, index) {