From: Kohei Yoshino Date: Mon, 4 Jun 2018 20:54:24 +0000 (-0400) Subject: no bug - Fix SyntaxError in global.js X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb7ced68adc539b928198c92df21e30e51f41518;p=thirdparty%2Fbugzilla.git no bug - Fix SyntaxError in global.js --- diff --git a/js/global.js b/js/global.js index 68aceb03f..d0396d6a8 100644 --- a/js/global.js +++ b/js/global.js @@ -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);