Skip to content

Commit ad82f02

Browse files
committed
Fix displaying Inkuire results
1 parent 7fa58fe commit ad82f02

File tree

3 files changed

+1785
-1783
lines changed

3 files changed

+1785
-1783
lines changed

scaladoc-js/src/searchbar/SearchbarComponent.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class SearchbarComponent(engine: SearchbarEngine, inkuireEngine: InkuireJSSearch
2626
location.classList.add("scaladoc-searchbar-location")
2727
location.textContent = p.description
2828

29+
wrapper.appendChild(icon)
2930
wrapper.appendChild(resultA)
3031
wrapper.appendChild(location)
3132
wrapper.addEventListener("mouseover", {

scaladoc-js/src/searchbar/engine/InkuireJSSearchEngine.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class InkuireJSSearchEngine {
3535
case "engine_ready" =>
3636
case "new_query" =>
3737
case q =>
38+
println(q)
3839
val matches = JSON.parse(q).matches
3940
val actualMatches = matches.asInstanceOf[js.Array[Dynamic]].map(dynamicToPageEntry)
4041
actualMatches.foreach(callback)

0 commit comments

Comments
 (0)