Skip to content

Commit

Permalink
smal fix. pass the first message as header
Browse files Browse the repository at this point in the history
  • Loading branch information
giosilvi committed May 26, 2024
1 parent 68488b6 commit c6311a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/popup_world.js
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,10 @@ class popUpClass extends HTMLElement {
const symbol = symbolFromModel(request.bodyData.model);
this.shadowRoot.getElementById(`${targetId}symbol`).innerHTML = symbol;
this.shadowRoot.getElementById(`${targetId}symbol`).title = request.bodyData.model;
this.shadowRoot.getElementById(`${targetId}header`).innerHTML = `<i> ${JSON.stringify(request.text[0]["content"])} </i>`;
const firstMessage = request.text[1]["content"];
if (firstMessage){
this.shadowRoot.getElementById(`${targetId}header`).innerHTML = `<i> ${JSON.stringify(firstMessage)} </i>`;
}

if (this.shadowRoot.getElementById(`regenerate${targetId}`)) {
if (!this.alreadyCalled[targetId]) {
Expand Down

0 comments on commit c6311a8

Please sign in to comment.