Skip to content

Commit

Permalink
fix: typings for builds;
Browse files Browse the repository at this point in the history
  • Loading branch information
ondreian committed May 19, 2023
1 parent 75e7896 commit fec25a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/frontend/components/session/streams.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class Streams extends HTMLElement {
addEntry (entry : HTMLElement) {
addEntry (entry : Element) {
const wasScrolled = this.isScrolling
this.appendChild(entry.cloneNode(true))
if (wasScrolled) return
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/session/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export class FrontendSession {
const streams = [...frag.querySelectorAll(".stream.thoughts")]

if (streams.length) {
streams.forEach(entry =>session.ui.streams.addEntry(entry))
streams.forEach(entry =>
session.ui.streams.addEntry(entry))
}

if (frag.hasChildNodes() && frag.textContent?.trim() !== ""){
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/session/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function makeSessionUI (session : Session): SessionUI {
handsContainer.append(left, right, spell)

// feeds and streams
const streams = new Streams(session)
const streams = new Streams()
const feed = new Feed(session)

// cli related ui components
Expand Down

0 comments on commit fec25a3

Please sign in to comment.