prototype: Update Prototype.Browser.MobileSafari for iPod touch compatibility.

This commit is contained in:
Sam Stephenson 2007-10-08 17:30:40 +00:00
parent 746a905ef4
commit 05e48f6feb

2
src/prototype.js vendored
View File

@ -8,7 +8,7 @@ var Prototype = {
Opera: !!window.opera,
WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
MobileSafari: !!navigator.userAgent.match(/iPhone.*Mobile.*Safari/)
MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
},
BrowserFeatures: {