Explorar o código

Remove duplicate check of element type (#2210)

Ryan Schumacher %!s(int64=5) %!d(string=hai) anos
pai
achega
87c4deb45c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/@uppy/utils/src/findDOMElement.js

+ 1 - 1
packages/@uppy/utils/src/findDOMElement.js

@@ -11,7 +11,7 @@ module.exports = function findDOMElement (element, context = document) {
     return context.querySelector(element)
   }
 
-  if (typeof element === 'object' && isDOMElement(element)) {
+  if (isDOMElement(element)) {
     return element
   }
 }