Avoid page reload upon hitting "S" when browing in local mode

This commit is contained in:
Novotnik, Petr 2016-03-25 21:35:10 +01:00
parent 64a13a4660
commit 88ab9382ae
1 changed files with 0 additions and 2 deletions

View File

@ -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');