Skip to content

Commit

Permalink
fix(useMutationObserver): isSupported misjudge (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
laozei6401 committed May 3, 2022
1 parent dccd1f3 commit a4238a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useMutationObserver/index.ts
Expand Up @@ -23,7 +23,7 @@ export function useMutationObserver(
) {
const { window = defaultWindow, ...mutationOptions } = options
let observer: MutationObserver | undefined
const isSupported = window && 'IntersectionObserver' in window
const isSupported = window && 'MutationObserver' in window

const cleanup = () => {
if (observer) {
Expand Down

0 comments on commit a4238a8

Please sign in to comment.