ソースを参照

URL hash fix.

master
Palash Bansal 2年前
コミット
d6986b3b5e
コミッターのメールアドレスに関連付けられたアカウントが存在しません
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;


読み込み中…
キャンセル
保存