Skip to content

Commit

Permalink
web: Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhjacobs authored and Dinnerbone committed Nov 23, 2024
1 parent 2da8fcb commit 4bc4cc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/packages/core/src/public/player/player-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type APIVersions = {
/**
* A Ruffle player's HTML element.
*
* This is either created through `window.RufflePlayer.latest().createPlayer()`, or polyfilled from a `<embed>`/`<object>` tag.
* This is either created through `window.RufflePlayer.newest().createPlayer()`, or polyfilled from a `<embed>`/`<object>` tag.
*
* In addition to usual HTML attributes, this player contains methods and properties that belong to both
* the **Flash JS API** and **legacy Ruffle API**s. You are strongly discouraged from using them, and should instead
Expand Down
2 changes: 1 addition & 1 deletion web/packages/core/src/public/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* make the `ruffle-core` library register itself as a version of Ruffle on the page.
*
* Multiple sources of Ruffle may exist - for example, the Ruffle browser extension also installs itself on page load.
* For this reason, you are required to call `window.RufflePlayer.latest()` (for example) to grab the latest {@link SourceAPI},
* For this reason, you are required to call `window.RufflePlayer.newest()` (for example) to grab the latest {@link SourceAPI},
* from which you can create a {@link PlayerElement} via {@link SourceAPI.createPlayer}.
*
* @module
Expand Down

0 comments on commit 4bc4cc7

Please sign in to comment.