Skip to content

Commit

Permalink
fix(no-ie): wrap ie-detection in one line
Browse files Browse the repository at this point in the history
Co-Authored-By: DanielHabenicht <[email protected]>
  • Loading branch information
VanLampe and DanielHabenicht authored Mar 11, 2020
1 parent 6227bd7 commit c002afb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Phonebook.Frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
'Mozilla Firefox': 'https://www.mozilla.org',
Opera: 'https://www.opera.com'
};
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
var msie = window.navigator.userAgent.indexOf('MSIE ');


if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {
// stone age browser IE
Expand Down

0 comments on commit c002afb

Please sign in to comment.