From a92574837ee54b71b42ef3fcd6038eb3c51f0029 Mon Sep 17 00:00:00 2001 From: ShanningZhuang Date: Thu, 8 Jan 2026 02:17:41 -0800 Subject: [PATCH] Fix XML loading in wasm demo app. Fixes #2960 PiperOrigin-RevId: 853635752 Change-Id: I20226de32f3141d40ec56956451f91ec7299e727 --- wasm/demo_app/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm/demo_app/app.ts b/wasm/demo_app/app.ts index 24644341..3e04f42c 100644 --- a/wasm/demo_app/app.ts +++ b/wasm/demo_app/app.ts @@ -208,7 +208,7 @@ class App { // Write xml as a file so that mujoco can find it (mujoco as any).FS.writeFile('/working/model.xml', xmlContent); - this.mjModel = mujoco.MjModel.loadFromXML('/working/model.xml'); + this.mjModel = mujoco.MjModel.mj_loadXML('/working/model.xml'); if (!app.mjModel) { throw new Error('Failed to load model'); }