Skip to content

Commit

Permalink
fix html
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragzouken committed Nov 18, 2023
1 parent 6507fc1 commit 6f9831f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/client/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -958,10 +958,7 @@ function setupEntrySplash() {
}
updateEntryUsers();
setInterval(updateEntryUsers, 5000);

const playing = document.createElement("div");
entryPlaying.replaceChildren(playing);


let lastItem: QueueItem;
let lastTime: number;

Expand All @@ -971,9 +968,9 @@ function setupEntrySplash() {

const stamp = secondsToTime(time / 1000);
const duration = secondsToTime(lastItem.media.duration / 1000);
playing.replaceChildren(`${lastItem.media.title}`, document.createElement("br"), `${stamp} / ${duration}`);
entryPlaying.replaceChildren(`${lastItem.media.title}`, document.createElement("br"), `${stamp} / ${duration}`);
} else {
playing.replaceChildren(`nothing playing`);
entryPlaying.replaceChildren(`nothing playing`);
}
}

Expand Down

0 comments on commit 6f9831f

Please sign in to comment.