Fix definition of iOS function (#4118)
This commit is contained in:
parent
0411f11355
commit
5026e41d21
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ var isMobile = {
|
||||||
return !!navigator.userAgent.match(/BlackBerry/i);
|
return !!navigator.userAgent.match(/BlackBerry/i);
|
||||||
},
|
},
|
||||||
iOS: function() {
|
iOS: function() {
|
||||||
return !!navigator.userAgent.match(/iPhone|iPad|iPod/i);
|
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
||||||
},
|
},
|
||||||
Opera: function() {
|
Opera: function() {
|
||||||
return !!navigator.userAgent.match(/Opera Mini/i);
|
return !!navigator.userAgent.match(/Opera Mini/i);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue