Skip to content

Commit

Permalink
remove performance timing
Browse files Browse the repository at this point in the history
  • Loading branch information
korki43 committed Mar 26, 2023
1 parent cf6b49d commit d168e12
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
})

function search(searchTerm) {
var startTime = performance.now()
var searchResult = fuse.search(searchTerm)

iconListContainer.innerHTML = ""
Expand All @@ -36,16 +35,12 @@
iconListContainer.append(...iconElementList)
}

console.log("time (ms):", performance.now() - startTime)

var newUrl = new URL(location)

if (searchTerm.length > 0) {
newUrl.searchParams.set("q", searchTerm)
} else {
newUrl.searchParams.delete("q")
}

history.replaceState(null, null, newUrl)
}

Expand Down

0 comments on commit d168e12

Please sign in to comment.