Skip to content

Commit 88ab938

Browse files
author
Novotnik, Petr
committed
Avoid page reload upon hitting "S" when browing in local mode
1 parent 64a13a4 commit 88ab938

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)