From 4bc4cc702dcbc3896a01bd18d95dc7912f034a3a Mon Sep 17 00:00:00 2001 From: Daniel Jacobs Date: Thu, 21 Nov 2024 16:16:58 -0500 Subject: [PATCH] web: Fix documentation --- web/packages/core/src/public/player/player-element.ts | 2 +- web/packages/core/src/public/setup/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/packages/core/src/public/player/player-element.ts b/web/packages/core/src/public/player/player-element.ts index 32894264d36e..4038f5a24fb2 100644 --- a/web/packages/core/src/public/player/player-element.ts +++ b/web/packages/core/src/public/player/player-element.ts @@ -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 ``/`` tag. + * This is either created through `window.RufflePlayer.newest().createPlayer()`, or polyfilled from a ``/`` 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 diff --git a/web/packages/core/src/public/setup/index.ts b/web/packages/core/src/public/setup/index.ts index eb86b3c22c21..f7fa949a2cc1 100644 --- a/web/packages/core/src/public/setup/index.ts +++ b/web/packages/core/src/public/setup/index.ts @@ -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