Fix Internet Explorer deprecation warning on IE11

This commit is contained in:
Benjamin Renard 2020-06-04 19:35:49 +02:00
parent ac1626fe22
commit 6e14916bae

View file

@ -1,5 +1,5 @@
// Check IE
if (window.navigator.userAgent.indexOf("MSIE ") >= 0) {
// Check IE including IE11.
if(window.navigator.userAgent.indexOf("MSIE ") >= 0 || window.navigator.userAgent.indexOf('Trident/') >= 0) {
alert('Internet Explorer is no longer supported. Thank you for using or installing a browser of our time :)');
}