소스 검색

URL hash fix.

master
Palash Bansal 2 년 전
부모
커밋
d6986b3b5e
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      examples/index.html

+ 2
- 2
examples/index.html 파일 보기

@@ -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…
취소
저장