fix: relink search button (move outside content load listener)

This commit is contained in:
Jacky Zhao 2022-02-22 13:36:08 -05:00
parent 714b4fcfa3
commit cdc4f1a840

View File

@ -239,7 +239,6 @@ async function run() {
}
})
window.addEventListener('DOMContentLoaded', () => {
const searchButton = document.getElementById("search-icon")
searchButton.addEventListener('click', (evt) => {
openSearch()
@ -253,7 +252,6 @@ async function run() {
document.getElementById("search-space").addEventListener('click', (evt) => {
evt.stopPropagation()
})
})
}
run()