From a2fc2965734ff757dc5fb225727560e1657358ac Mon Sep 17 00:00:00 2001 From: Maria Shodunke Date: Thu, 13 Nov 2025 08:03:45 -0800 Subject: [PATCH] Add minor improvements for javascript code walkthrough --- _code-samples/get-started/js/get-acct-info.js | 4 +++- .../javascript/build-apps/get-started.md | 16 +++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/_code-samples/get-started/js/get-acct-info.js b/_code-samples/get-started/js/get-acct-info.js index bb653b0c5b..3746618cdc 100644 --- a/_code-samples/get-started/js/get-acct-info.js +++ b/_code-samples/get-started/js/get-acct-info.js @@ -1,7 +1,9 @@ +// @chunk {"steps": ["import-node-tag"]} // Import the library -// @chunk {"steps": ["connect-tag"]} import xrpl from "xrpl" +// @chunk-end +// @chunk {"steps": ["connect-tag"]} // Define the network client const SERVER_URL = "wss://s.altnet.rippletest.net:51233/" const client = new xrpl.Client(SERVER_URL) diff --git a/docs/tutorials/javascript/build-apps/get-started.md b/docs/tutorials/javascript/build-apps/get-started.md index 48624842b3..f60b99c37f 100644 --- a/docs/tutorials/javascript/build-apps/get-started.md +++ b/docs/tutorials/javascript/build-apps/get-started.md @@ -62,10 +62,10 @@ Click **Download** on the top right of the code preview panel to download the so Follow the steps to create a simple application with `xrpl.js`. -### 1. Install Dependencies - {% step id="import-web-tag" when={ "environment": "Web" } %} +### 1. Install Dependencies + To load `xrpl.js` into your project, add a `