Avoid page reload upon hitting "S" when browing in local mode
This commit is contained in:
parent
64a13a4660
commit
88ab9382ae
@ -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…
x
Reference in New Issue
Block a user