瀏覽代碼

Remove duplicate check of element type (#2210)

Ryan Schumacher 5 年之前
父節點
當前提交
87c4deb45c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
   }
 }