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
This commit is contained in:
Cody Jackson 2019-11-07 13:52:47 -07:00
parent 62bee3bdf0
commit 9c010cd66b
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -2,5 +2,5 @@
<br><br>
<div class="sad-ie"></div>
<br><br>
<h3s>Sorry, IE is not supported.</h3s>
<h3s>Sorry, IE and Edge are not supported.</h3s>
</section>