Avoid page reload upon hitting "S" when browing in local mode
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user