Skip to content

Commit

Permalink
Fix name clash
Browse files Browse the repository at this point in the history
  • Loading branch information
woofers authored Dec 30, 2024
1 parent 9e5a80f commit f3a6d6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/use-eye-dropper/src/use-eye-dropper.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const anySignal = signals => {
return controller.signal
}

const isSupported = () =>
const isDropperSupported = () =>
typeof window !== 'undefined' && 'EyeDropper' in window

const resolveError = () => {
Expand All @@ -61,7 +61,7 @@ const useIsSupported = () => {
const [data, setData] = useState(false)
useEffect(() => {
mounted.current = true
setData(isSupported())
setData(isDropperSupported())
return () => {
mounted.current = false
}
Expand All @@ -75,7 +75,7 @@ const useIsSupported = () => {
*/
export const useEyeDropper = options => {
const openPicker = useMemo(() => {
const dropper = isSupported() && new EyeDropper(options)
const dropper = isDropperSupported() && new EyeDropper(options)
const open = bindFunc('open', dropper)
return open
}, [options])
Expand Down

0 comments on commit f3a6d6d

Please sign in to comment.