Commit 073f075
index3: wait for the player stylesheet before mounting a demo
asciinema-player reads its palette from the --term-color-* custom
properties once, when the terminal view mounts, and falls back to an
all-black theme (foreground, background and all 16 palette entries)
when they do not resolve.
The lazy loader only waited for the script, so on a cold load the
player could mount before the stylesheet had been applied and render
the recording black on black. Wait for both tags.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9916c45 commit 073f075
1 file changed
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1634 | 1634 | | |
1635 | 1635 | | |
1636 | 1636 | | |
1637 | | - | |
1638 | | - | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
1645 | | - | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
1649 | 1646 | | |
1650 | 1647 | | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
1651 | 1654 | | |
1652 | 1655 | | |
1653 | 1656 | | |
| |||
0 commit comments