Rollup merge of #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 2910c00206
This commit is contained in:
commit
90f2b69cdd
1 changed files with 0 additions and 2 deletions
|
|
@ -742,8 +742,6 @@
|
|||
if ($(this).val().length === 0) {
|
||||
if (browserSupportsHistoryApi()) {
|
||||
history.replaceState("", "std - Rust", "?search=");
|
||||
} else {
|
||||
location.replace("?search=");
|
||||
}
|
||||
$('#main.content').removeClass('hidden');
|
||||
$('#search.content').addClass('hidden');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue