diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-07-14 09:08:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 09:08:10 +0300 |
commit | e45b25e08ed13ae063a9d2f2382f6459bc564cff (patch) | |
tree | b6174d62107a02400b1d624567e73eb0fe43199b /js/src | |
parent | 2b297b977ac4d4a98ab2bf52d5c26fc6cd98709f (diff) |
util.js: remove `Selector.findOne()` dependency (#34441)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/util/index.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js index 7c317b0162..a1af87aa47 100644 --- a/js/src/util/index.js +++ b/js/src/util/index.js @@ -1,4 +1,3 @@ -import SelectorEngine from '../dom/selector-engine' /** * -------------------------------------------------------------------------- @@ -120,7 +119,7 @@ const getElement = obj => { } if (typeof obj === 'string' && obj.length > 0) { - return SelectorEngine.findOne(obj) + return document.querySelector(obj) } return null |