Skip to content

Commit 17ea3e8

Browse files
committed
Rollup merge of rust-lang#32492 - xitep:master, r=alexcrichton
Avoid page reload upon hitting "S" when browsing documentation in local mode The problem seems to have been introduced with commit 2910c00
2 parents 49a9137 + 88ab938 commit 17ea3e8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustdoc/html/static/main.js

-2
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,6 @@
742742
if ($(this).val().length === 0) {
743743
if (browserSupportsHistoryApi()) {
744744
history.replaceState("", "std - Rust", "?search=");
745-
} else {
746-
location.replace("?search=");
747745
}
748746
$('#main.content').removeClass('hidden');
749747
$('#search.content').addClass('hidden');

0 commit comments

Comments
 (0)