mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
doctools: fix hideSearchWords
Previous code was:
b3812f72a9/sphinx/themes/basic/static/doctools.js (L262-L268)
Ref https://github.com/sphinx-doc/sphinx/pull/10028
This commit is contained in:
@@ -168,7 +168,8 @@ const Documentation = {
|
||||
document
|
||||
.querySelectorAll("span.highlighted")
|
||||
.forEach((el) => el.classList.remove("highlighted"));
|
||||
new URLSearchParams(window.location.search).delete('highlight')
|
||||
const url = new URL(window.location);
|
||||
url.searchParams.delete('highlight');
|
||||
window.history.replaceState({}, '', url);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user