]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
no bug - Fix SyntaxError in global.js
authorKohei Yoshino <kohei.yoshino@gmail.com>
Mon, 4 Jun 2018 20:54:24 +0000 (16:54 -0400)
committerdklawren <dklawren@users.noreply.github.com>
Mon, 4 Jun 2018 20:54:24 +0000 (16:54 -0400)
js/global.js

index 68aceb03faf8927c5cc30e687b13a3845dde4f5c..d0396d6a8552a95725aa86c7b897cd291e69dce1 100644 (file)
@@ -219,7 +219,7 @@ const detect_blocked_gravatars = () => {
  */
 const adjust_scroll_onload = () => {
     if (location.hash) {
-        const $target = document.querySelector(location.hash);
+        const $target = document.querySelector(CSS.escape(location.hash));
 
         if ($target) {
             window.setTimeout(() => scroll_element_into_view($target), 50);