From 9c010cd66b13e7864afa916b1cd398fb6743325a Mon Sep 17 00:00:00 2001 From: Cody Jackson Date: Thu, 7 Nov 2019 13:52:47 -0700 Subject: [PATCH] Include EdgeHTML based browers to blacklist We don't support the EdgeHTML browsers just like we don't support Internet Explorer. I added EdgeHTML to the blacklist so that we will display the unsupported page. rancher/rancher#23909 --- app/application/route.js | 3 ++- app/ie/template.hbs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/application/route.js b/app/application/route.js index 99eaf1cc3..381f211a7 100644 --- a/app/application/route.js +++ b/app/application/route.js @@ -26,7 +26,8 @@ export default Route.extend({ let agent = window.navigator.userAgent.toLowerCase(); - if ( agent.indexOf('msie ') >= 0 || agent.indexOf('trident/') >= 0 ) { + // Show the we don't support internet explorer or edge browsers (only edge html based browsers the mobile and chromium based browsers should be okay). + if ( agent.indexOf('msie ') >= 0 || agent.indexOf('trident/') >= 0 || agent.indexOf('edge/') >= 0) { this.replaceWith('ie'); return; diff --git a/app/ie/template.hbs b/app/ie/template.hbs index dcc386951..f8e5b02e7 100644 --- a/app/ie/template.hbs +++ b/app/ie/template.hbs @@ -2,5 +2,5 @@



- Sorry, IE is not supported. + Sorry, IE and Edge are not supported.