Skip to content

Commit 2f1ccc5

Browse files
committed
Correction to mobile detect
1 parent 4f76027 commit 2f1ccc5

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

dist/easycoder.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6512,9 +6512,6 @@ const EasyCoder_Browser = {
65126512
BlackBerry: function() {
65136513
return navigator.userAgent.match(/BlackBerry/i);
65146514
},
6515-
Chrome: function() {
6516-
return navigator.userAgent.match(/chrome|chromium|crios/i);
6517-
},
65186515
iOS: function() {
65196516
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
65206517
},
@@ -6525,7 +6522,7 @@ const EasyCoder_Browser = {
65256522
return navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/WPDesktop/i);
65266523
},
65276524
any: function() {
6528-
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.Chrome()
6525+
return (isMobile.Android() || isMobile.BlackBerry()
65296526
|| isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
65306527
}
65316528
};

js/easycoder/Browser.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3132,9 +3132,6 @@ const EasyCoder_Browser = {
31323132
BlackBerry: function() {
31333133
return navigator.userAgent.match(/BlackBerry/i);
31343134
},
3135-
Chrome: function() {
3136-
return navigator.userAgent.match(/chrome|chromium|crios/i);
3137-
},
31383135
iOS: function() {
31393136
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
31403137
},
@@ -3145,7 +3142,7 @@ const EasyCoder_Browser = {
31453142
return navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/WPDesktop/i);
31463143
},
31473144
any: function() {
3148-
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.Chrome()
3145+
return (isMobile.Android() || isMobile.BlackBerry()
31493146
|| isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
31503147
}
31513148
};

0 commit comments

Comments
 (0)