Fix definition of iOS function (#4118)

This commit is contained in:
Gustavo Maximiliano Cortez 2016-04-22 16:59:45 -03:00 committed by Matias Alejo Garcia
commit 5026e41d21

View file

@ -9,7 +9,7 @@ var isMobile = {
return !!navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return !!navigator.userAgent.match(/iPhone|iPad|iPod/i);
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
},
Opera: function() {
return !!navigator.userAgent.match(/Opera Mini/i);