From 6e14916bae24bcc950b53a4f2c6c1467744bc57a Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 4 Jun 2020 19:35:49 +0200 Subject: [PATCH] Fix Internet Explorer deprecation warning on IE11 --- src/includes/js/LSdefault.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/includes/js/LSdefault.js b/src/includes/js/LSdefault.js index 494bfb13..95d428eb 100644 --- a/src/includes/js/LSdefault.js +++ b/src/includes/js/LSdefault.js @@ -1,6 +1,6 @@ -// Check IE -if (window.navigator.userAgent.indexOf("MSIE ") >= 0) { - alert('Internet Explorer is no longer supported. Thank you for using or installing a browser of our time :)'); +// 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 :)'); } var LSdefault = new Class({