Always render "browser not supported" alert and disable it for supported browsers

This commit is contained in:
Sebastian Serth
2020-03-03 18:13:30 +01:00
parent 8fa37842af
commit ca82e4000a
3 changed files with 5 additions and 5 deletions

View File

@ -418,7 +418,8 @@ configureEditors: function () {
isBrowserSupported: function () {
// websockets are used for run, score and test
return Modernizr.websockets;
// Also exclude IE and IE 11
return Modernizr.websockets && window.navigator.userAgent.indexOf("MSIE") <= 0 && !navigator.userAgent.match(/Trident\/7\./);
},
populateCard: function (card, result, index) {
@ -723,7 +724,7 @@ configureEditors: function () {
type: 'POST',
url: $('#editor').data('intervention-save-url')
});
};
}
}
}
}, delta);