Skip to content

Commit

Permalink
Detect MS IE Edge (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfennelly authored Feb 13, 2017
1 parent 55c7c04 commit 397ad22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<j:invokeStatic var="j" className="jenkins.model.Jenkins" method="getActiveInstance"/>
${h.initPageVariables(context)}

<j:set var="isMSIE" value="${userAgent.contains('MSIE') || userAgent.contains('Trident')}"/>
<j:set var="isMSIE" value="${userAgent.contains('Edge') || userAgent.contains('MSIE') || userAgent.contains('Trident')}"/>

<head lang="${it.lang}"
data-rooturl="${rootURL}"
Expand Down
2 changes: 1 addition & 1 deletion blueocean-web/src/main/webapp/scripts/ie-detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
var incompatPageUrl = appurl + '/incompatibleie';
var currentlyOnIncompatPage = (window.location.pathname === incompatPageUrl);

if (ieVersion.ActingVersion < 11) {
if (ieVersion.ActingVersion < 11 && !ieVersion.IsEdge) {
if (!currentlyOnIncompatPage) {
// Versions is too old and we're not already on the incompat page.
// Redirect to the compatibility page.
Expand Down

0 comments on commit 397ad22

Please sign in to comment.