Palash Bansal 2 лет назад
Родитель
Сommit
d6986b3b5e
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      examples/index.html

+ 2
- 2
examples/index.html Просмотреть файл

const filterQuery = filterInput.value.toLowerCase(); const filterQuery = filterInput.value.toLowerCase();
urlParams.set('q', filterQuery); urlParams.set('q', filterQuery);
if(searchTerm) if(searchTerm)
window.history.replaceState({}, '', '?' + urlParams.toString());
window.history.replaceState({}, '', '?' + urlParams.toString() + window.location.hash);
else if(filterQuery !== '') else if(filterQuery !== '')
window.history.pushState({}, '', '?' + urlParams.toString());
window.history.pushState({}, '', '?' + urlParams.toString() + window.location.hash);


searchTerm = filterQuery; searchTerm = filterQuery;



Загрузка…
Отмена
Сохранить