Avoid page reload upon hitting "S" when browing in local mode
This commit is contained in:
parent
64a13a4660
commit
88ab9382ae
1 changed files with 0 additions and 2 deletions
|
@ -742,8 +742,6 @@
|
||||||
if ($(this).val().length === 0) {
|
if ($(this).val().length === 0) {
|
||||||
if (browserSupportsHistoryApi()) {
|
if (browserSupportsHistoryApi()) {
|
||||||
history.replaceState("", "std - Rust", "?search=");
|
history.replaceState("", "std - Rust", "?search=");
|
||||||
} else {
|
|
||||||
location.replace("?search=");
|
|
||||||
}
|
}
|
||||||
$('#main.content').removeClass('hidden');
|
$('#main.content').removeClass('hidden');
|
||||||
$('#search.content').addClass('hidden');
|
$('#search.content').addClass('hidden');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue