Explorar el Código

Remove duplicate check of element type (#2210)

Ryan Schumacher hace 5 años
padre
commit
87c4deb45c
Se han modificado 1 ficheros con 1 adiciones y 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
   }
 }