Skip to content

Commit

Permalink
Merge pull request #114 from daolou/patch-1
Browse files Browse the repository at this point in the history
typo: mehtod -> method
  • Loading branch information
devilwjp authored Mar 11, 2024
2 parents 7304c9f + 75fe731 commit 7c0306c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overrideDom.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function overwriteDomMethods(refDom) {
const oldResult = old.apply(this, args)
if (oldResult && (oldResult.constructor !== NodeList || (oldResult.constructor === NodeList && oldResult.length > 0))) return oldResult
// If each function of Document is called using apply, an error will occur. Here you need to use the native function of Element.
const nativeElementFn = domTopObject.Element[method] || Element.prototype[mehtod]
const nativeElementFn = domTopObject.Element[method] || Element.prototype[method]
return nativeElementFn.apply(refDom, args)
}
})
Expand Down

0 comments on commit 7c0306c

Please sign in to comment.