Skip to content
This repository has been archived by the owner on Jun 24, 2018. It is now read-only.

.userAgent.indexOf("WebKit") should be compared with "-1", to return Boolean value... #2

Open
matthewslyman opened this issue Aug 2, 2011 · 0 comments

Comments

@matthewslyman
Copy link

hasBadImplementation:navigator.userAgent.indexOf("WebKit")

should be

hasBadImplementation:navigator.userAgent.indexOf("WebKit")!=-1

...courtesy of Hallvord R. M. Steen at Opera - see this article:
http://my.opera.com/hallvors/blog/show.dml/476181

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant