Kaynağa Gözat

URL hash fix.

master
Palash Bansal 2 yıl önce
ebeveyn
işleme
d6986b3b5e
No account linked to committer's email address
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      examples/index.html

+ 2
- 2
examples/index.html Dosyayı Görüntüle

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


Loading…
İptal
Kaydet