Mute "unknown error" messages in Edge which occur after the socket was closed successfully

This commit is contained in:
Maximilian Grundke
2018-05-16 14:35:08 +02:00
parent 8faab600b5
commit a92c13ed71

View File

@ -552,6 +552,10 @@ configureEditors: function () {
}, },
showWebsocketError: function() { showWebsocketError: function() {
if (window.navigator.userAgent.indexOf('Edge') > -1) {
// Mute errors in Microsoft Edge
return;
}
$.flash.danger({ $.flash.danger({
text: $('#flash').data('message-failure') text: $('#flash').data('message-failure')
}); });