Closed JosephPecoraro closed 11 years ago
Would detecting for an AppleWebKit version number greater than 537.38 also work? Something like this:
safariSupport = ->
m = navigator.userAgent.match /AppleWebKit\/(\d+)\.(\d+)(\.|\+|\s)/
return false unless m
return 537.38 >= parseInt(m[1], 10) + (parseInt(m[2], 10) / 100)
I tested this on my end and it seems to work. Thanks for the help here.
Looks great. Thanks!
Shouldn't that be 537.38 <= ...
(less than, not greater than)
The Safari Web Inspector in today's WebKit Nightly now supports "%c" in format strings. http://nightly.webkit.org (r148526 or later). This also works when remotely inspecting iOS devices. Screenshot:
Currently log.js disables support for Safari. It would be great if this was enabled for WebKit Nighty users using the Safari Web Inspector right now.
A common way to detect a WebKit Nightly user is to check for a
+
in WebKit number in the UserAgent, e.g.AppleWebKit/537.38+
.Safari 6.0.4:
WebKit Nightly: