Danail Gabenski
Danail Gabenski

Reputation: 3670

jQuery fails to detect chrome as webkit?

I have used $.browser.webkit to detect if my browser is either Safari/Chrome, now this check returns false when using Chrome ?

Upvotes: 0

Views: 143

Answers (1)

adeneo
adeneo

Reputation: 318342

$.browser is deprecated, and you should use $.support instead to check for available features and not specific browsers!

$.browser is still available in jQuery 1.8, but will return Chrome in chrome browsers etc. and no longer returns webkit.

FIDDLE

Upvotes: 5

Related Questions