Explorar el Código

URL hash fix.

master
Palash Bansal hace 2 años
padre
commit
d6986b3b5e
No account linked to committer's email address
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      examples/index.html

+ 2
- 2
examples/index.html Ver fichero

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


Cargando…
Cancelar
Guardar