# HG changeset patch # User Dan Fuhry # Date 1285379425 14400 # Node ID ba8a648baebc60ecdf78a0b07e589dee842ac139 # Parent 0470b31767816cf91bf9b5aa3a0b856f5910da5a Fixed check for iPhone OS 3 - it now returns true on 3.0 or any later version including 4.x diff -r 0470b3176781 -r ba8a648baebc includes/clientside/static/enano-lib-basic.js --- a/includes/clientside/static/enano-lib-basic.js Tue Sep 21 14:15:04 2010 -0400 +++ b/includes/clientside/static/enano-lib-basic.js Fri Sep 24 21:50:25 2010 -0400 @@ -57,7 +57,7 @@ var IE_8 = checkIt('msie 8.'); var is_Opera = checkIt('opera'); var is_iPhone = checkIt('iphone') || checkIt('ipod'); -var is_iPhone_3 = checkIt('iphone os 3_'); +var is_iPhone_3 = checkIt('iphone') && Number(navigator.userAgent.replace(/^.*iPhone OS ([0-9]+)_([0-9]+) .*$/, '$1.$2')) >= 3.0; var is_Webkit = checkIt('applewebkit'); var is_Gecko = checkIt('gecko'); var is_firefox2 = checkIt('firefox/2.');