Open GoogleCodeExporter opened 8 years ago
The offered code works well in Safari 3.1.1 (Windows) with a minor adjustment:
} else if (vendor.indexOf("Apple Computer, Inc.") > -1 &&
parseFloat(navigator.version) < 3.0) {
Original comment by vglusc...@gmail.com
on 3 Jul 2008 at 7:28
[deleted comment]
navigator.version doesn't work for me in Safari 3.1.2
Used UA.match(/version\/([\d\.]*)/) to find the version.
Original comment by alex.dennis@gmail.com
on 24 Sep 2008 at 8:36
hmmm... just can't get that version properly.
I'm using Safari 3.2.1 Win.
Original comment by darko.st...@gmail.com
on 15 Apr 2009 at 10:45
This issue also affects Safari 4. vgluschuk's comment fixed it for me. Line 61
is the
one that needs to be replaced.
Original comment by darkomei...@gmail.com
on 1 Nov 2009 at 9:17
The reason that 'works' is because for modern safari browsers navigator.version
is
undefined, so parseFloat(navigator.version) is a NaN, and NaN < 3.0 is false.
However I don't have an older version of safari. If they do have the
navigator.version string then technically everthing is okay, everything but
safari is
filtered out by the first condition, and Safari code handles the second in a
consistent way. However it's a hack at best :) (a very important one though!)
Original comment by a.wi...@gmail.com
on 13 Dec 2009 at 2:58
Thankyou, it worked perfectly in Safary with a Mac and iPad, I just used the
recommendation you gave on line 61 and it was good to go :)
Original comment by victorqu...@uvicate.com
on 18 Apr 2011 at 7:10
Original issue reported on code.google.com by
island.p...@gmail.com
on 20 Jun 2008 at 10:49