Skip to content

Commit

Permalink
More robust waiting until all buttons are rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Sep 6, 2024
1 parent 0269797 commit 73aa920
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render/PlayerButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class PlayerButton {
controlsContainer.prepend(this.container);

// wait a tick for React to render the buttons
await waitFor(() => document.getElementById("startSegmentButton"), 5000, 10);
await waitFor(() => document.getElementById("infoButton"), 5000, 10);
this.playerButtons = {
startSegment: {
Expand Down

0 comments on commit 73aa920

Please sign in to comment.