Ver código fonte

URL hash fix.

master
Palash Bansal 2 anos atrás
pai
commit
d6986b3b5e
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      examples/index.html

+ 2
- 2
examples/index.html Ver arquivo

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

searchTerm = filterQuery;


Carregando…
Cancelar
Salvar