aboutsummaryrefslogtreecommitdiff
path: root/js/src/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/util.js')
-rw-r--r--js/src/util.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/util.js b/js/src/util.js
index c20678fe0..e5521438e 100644
--- a/js/src/util.js
+++ b/js/src/util.js
@@ -82,8 +82,7 @@ const Util = (($) => {
}
try {
- const $selector = $(document).find(selector)
- return $selector.length > 0 ? selector : null
+ return document.querySelector(selector) ? selector : null
} catch (err) {
return null
}