Skip to content

Commit c002afb

Browse files
fix(no-ie): wrap ie-detection in one line
Co-Authored-By: DanielHabenicht <daniel-habenicht@outlook.de>
1 parent 6227bd7 commit c002afb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Phonebook.Frontend/src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
'Mozilla Firefox': 'https://www.mozilla.org',
5656
Opera: 'https://www.opera.com'
5757
};
58-
var ua = window.navigator.userAgent;
59-
var msie = ua.indexOf('MSIE ');
58+
var msie = window.navigator.userAgent.indexOf('MSIE ');
59+
6060

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

0 commit comments

Comments
 (0)