Skip to content

Commit

Permalink
fix up into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Jul 30, 2024
1 parent 75f522a commit ff0b9ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ const isPlaying = stack.playing;
// Or get a string value for the current state.
const currentState = stack.state;

// eslint-disable-next-line no-console
stack.on('state', (currentState) => console.log(currentState));
```

Expand Down Expand Up @@ -465,6 +466,7 @@ if (sound) {
});

sound.on('ended', ({id}) => {
// eslint-disable-next-line no-console
console.log(`Sound ${id} has been stopped at ${completion} completion`);
});
}
Expand Down

0 comments on commit ff0b9ae

Please sign in to comment.