Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornoaione <noaione0809@gmail.com>2021-03-07 21:43:22 +0300
committernoaione <noaione0809@gmail.com>2021-03-07 21:43:22 +0300
commite1ef292a68348fa14cbbec6c33b75191782f38e5 (patch)
treea62d59fa8bcdc4aee86868253234b55c77114772 /src
parentbfaaeaea36a27bb7c8f7f23ac0bc6eca499e46c1 (diff)
Use encodeURI on the ID
Diffstat (limited to 'src')
-rw-r--r--src/js/theme.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/theme.js b/src/js/theme.js
index 4376f72..a967922 100644
--- a/src/js/theme.js
+++ b/src/js/theme.js
@@ -475,7 +475,7 @@ class Theme {
const $selHeader = $headerLinkElements[activeTocIndex];
let $selectedToC;
for (let i = 0; i < $tocLinkElements.length; i++) {
- if ($tocLinkElements[i].hash.slice(1) === $selHeader.id) {
+ if ($tocLinkElements[i].hash.slice(1) === encodeURI($selHeader.id)) {
$selectedToC = $tocLinkElements[i];
if (i !== this.tocSelected) {
this.tocSelected = i;