Browse Source

Remove duplicate check of element type (#2210)

Ryan Schumacher 5 years ago
parent
commit
87c4deb45c
1 changed files with 1 additions and 1 deletions
  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
   }
 }