We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97f3eee commit ed84780Copy full SHA for ed84780
src/librustdoc/html/static/main.js
@@ -2703,3 +2703,9 @@ function focusSearchBar() {
2703
function defocusSearchBar() {
2704
getSearchInput().blur();
2705
}
2706
+
2707
+// This is required in firefox. Explanations: when going back in the history, firefox doesn't re-run
2708
+// the JS, therefore preventing rustdoc from setting a few things required to be able to reload the
2709
+// previous search results (if you navigated to a search result with the keyboard, pressed enter on
2710
+// it to navigate to that result, and then came back to this page).
2711
+window.onunload = function(){};
0 commit comments