util.js: remove `Selector.findOne()` dependency (#34441)

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
GeoSot 2021-07-14 09:08:10 +03:00 committed by GitHub
parent 2b297b977a
commit e45b25e08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
import SelectorEngine from '../dom/selector-engine'
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -120,7 +119,7 @@ const getElement = obj => {
} }
if (typeof obj === 'string' && obj.length > 0) { if (typeof obj === 'string' && obj.length > 0) {
return SelectorEngine.findOne(obj) return document.querySelector(obj)
} }
return null return null