Skip to content

Commit

Permalink
add more class
Browse files Browse the repository at this point in the history
  • Loading branch information
Endle committed Sep 6, 2024
1 parent c6437c5 commit 4faaa87
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fireSeqSearch_addon/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,8 @@ async function processLlmSummary(serverInfo, parsedSearchResult, fireDom) {
list = await list.text();
list = JSON.parse(list);
console.log(list);
for (const r of list) {
console.log(r);
}

for (const record of parsedSearchResult) {

// TODO remove hard code port
const llm_api = "http://127.0.0.1:3030/summarize/" + record.title;
console.log("llm called");
Expand Down Expand Up @@ -245,8 +241,10 @@ async function appendResultToSearchResult(serverInfo, parsedSearchResult, dom) {

function buildListItems(parsedSearchResult) {
const hitList = document.createElement("ul");
hitList.classList.add('fireSeqSearchHitList');
for (const record of parsedSearchResult) {
const li = createElementWithText("li", "");
li.classList.add('fireSeqSearchHitListItem');
if (firefoxExtensionUserOption.ShowScore) {
const score = createElementWithText("span", String(record.score));
li.appendChild(score);
Expand Down

0 comments on commit 4faaa87

Please sign in to comment.