Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Use this detection in withAutofillProps #50

Open
xaviervia opened this issue Aug 10, 2017 · 0 comments
Open

Use this detection in withAutofillProps #50

xaviervia opened this issue Aug 10, 2017 · 0 comments

Comments

@xaviervia
Copy link
Contributor

xaviervia commented Aug 10, 2017

export const supportsAutofill = tryCatch(
  () =>
    window &&
    window.document &&
    window.document.querySelector(':-webkit-autofill') === null &&
    navigator &&
    navigator.userAgent.indexOf('PhantomJS') === -1 &&
    typeof window.callPhantom === 'undefined',
  always(false)
)
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