diff options
Diffstat (limited to 'js/dist/util.js')
-rw-r--r-- | js/dist/util.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/dist/util.js b/js/dist/util.js index eaed7e574d..6f271d6b8c 100644 --- a/js/dist/util.js +++ b/js/dist/util.js @@ -76,8 +76,7 @@ var Util = function ($) { } try { - var $selector = $(document).find(selector); - return $selector.length > 0 ? selector : null; + return document.querySelector(selector) ? selector : null; } catch (err) { return null; } |