diff --git a/src/main/webapp/defaults/html/index.html b/src/main/webapp/defaults/html/index.html index fb81bd072..184878b01 100644 --- a/src/main/webapp/defaults/html/index.html +++ b/src/main/webapp/defaults/html/index.html @@ -206,6 +206,11 @@ + diff --git a/src/main/webapp/defaults/js/Login.js b/src/main/webapp/defaults/js/Login.js index 133e5a279..f46ed8aff 100644 --- a/src/main/webapp/defaults/js/Login.js +++ b/src/main/webapp/defaults/js/Login.js @@ -16,11 +16,20 @@ cspace = cspace || {}; (function ($, fluid) { fluid.log("Login.js loaded"); - // Notify user of IE browser incompatibility if IE is being used. - var browser = navigator.userAgent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; - if(/trident/i.test(browser[1])){ - window.alert('Notice: CollectionSpace is not optimized to use Internet Explorer. For an optimal experience please use the latest versions of Chrome or Firefox.'); - } + // Alert users if they happen to be using an incompatible browser aka. Microsoft. + var browserCompatibilityCheck = function () { + + // User strings may change with time, + // please see: https://msdn.microsoft.com/en-us/library/hh869301%28v=vs.85%29.aspx + // to stay up to date. + if (/MSIE 10/i.test(navigator.userAgent) || + /MSIE 9/i.test(navigator.userAgent) || + /rv:11.0/i.test(navigator.userAgent) || + /Edge\/\d./i.test(navigator.userAgent)) + { + window.alert('Hey there CollectionSpace user! Unfortunately, CollectionSpace is not optimized for use with your current browser. For an optimal experience, please use the latest version of Chrome or Firefox. - The CollectionSpace Team'); + } + }; // Show sign in UI and make sure everything else is hidden. var showSignIn = function (domBinder) {