1
Fork 0

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

View file

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