|
@ -799,10 +799,11 @@ $.fn.sidebar = function(parameters) { |
|
|
}, |
|
|
}, |
|
|
ios: function() { |
|
|
ios: function() { |
|
|
var |
|
|
var |
|
|
userAgent = navigator.userAgent, |
|
|
|
|
|
isIOS = userAgent.match(regExp.ios) |
|
|
|
|
|
|
|
|
userAgent = navigator.userAgent, |
|
|
|
|
|
isIOS = userAgent.match(regExp.ios), |
|
|
|
|
|
isMobileChrome = userAgent.match(regExp.mobileChrome) |
|
|
; |
|
|
; |
|
|
if(isIOS) { |
|
|
|
|
|
|
|
|
if(isIOS && !isMobileChrome) { |
|
|
module.verbose('Browser was found to be iOS', userAgent); |
|
|
module.verbose('Browser was found to be iOS', userAgent); |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
@ -1096,8 +1097,9 @@ $.fn.sidebar.settings = { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
regExp: { |
|
|
regExp: { |
|
|
ios : /(iPad|iPhone|iPod)/g, |
|
|
|
|
|
mobile : /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g |
|
|
|
|
|
|
|
|
ios : /(iPad|iPhone|iPod)/g, |
|
|
|
|
|
mobileChrome : /(CriOS)/g, |
|
|
|
|
|
mobile : /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
error : { |
|
|
error : { |
|
|