mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 20:40:39 +00:00
Fix incorrect method name in renderInto docs example
The code example for renderInto was calling renderWhenReady instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f7e163a2e4
commit
a0c018ac0f
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ A promise is returned which will resolve after the render is complete.
|
|||
|
||||
```ts
|
||||
const container = document.getElementById("webamp-container");
|
||||
webamp.renderWhenReady(container).then(() => {
|
||||
webamp.renderInto(container).then(() => {
|
||||
console.log("rendered webamp!");
|
||||
});
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue