From cb7ced68adc539b928198c92df21e30e51f41518 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Mon, 4 Jun 2018 16:54:24 -0400 Subject: no bug - Fix SyntaxError in global.js --- js/global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '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); -- cgit v1.2.3-24-g4f1b