1
Fork 0

No need to call getPageId a second time

This commit is contained in:
Guillaume Gomez 2020-03-30 13:48:59 +02:00
parent c86039b333
commit d5141e6829

View file

@ -2686,7 +2686,7 @@ function defocusSearchBar() {
hideSidebar();
};
autoCollapse(getPageId(), getCurrentValue("rustdoc-collapse") === "true");
autoCollapse(pageId, getCurrentValue("rustdoc-collapse") === "true");
if (window.location.hash && window.location.hash.length > 0) {
expandSection(window.location.hash.replace(/^#/, ""));