1
Fork 0

Only call onHashChange instead of both functions

This commit is contained in:
Guillaume Gomez 2019-11-07 10:16:14 +01:00
parent 24e093c5c3
commit d4527b7e00

View file

@ -265,7 +265,7 @@ function getSearchElement() {
if (match) {
return highlightSourceLines(match, ev);
}
handleHashes();
handleHashes(ev);
}
function expandSection(id) {
@ -2652,8 +2652,7 @@ function getSearchElement() {
insertAfter(popup, getSearchElement());
}
handleHashes();
highlightSourceLines();
onHashChange();
window.onhashchange = onHashChange;
buildHelperPopup();