From 3b6c45a3b65c346a34a0018aaed47c0c5766d0c6 Mon Sep 17 00:00:00 2001 From: Dan Marshall Date: Fri, 14 Nov 2025 15:42:13 -0800 Subject: [PATCH 1/3] Check for port 4000 on localhost --- packages/sandbox/src/sandbox.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sandbox/src/sandbox.ts b/packages/sandbox/src/sandbox.ts index e2176862..8a12ae74 100644 --- a/packages/sandbox/src/sandbox.ts +++ b/packages/sandbox/src/sandbox.ts @@ -104,8 +104,8 @@ export class Sandbox { } getDependencies() { - const { hostname, origin } = window.location; - const url = (hostname === 'localhost') + const { hostname, origin, port } = window.location; + const url = (hostname === 'localhost' && port === '4000') ? origin : 'https://microsoft.github.io'; return ` From 53b470478429472c3817069adb463cfd184bb2b5 Mon Sep 17 00:00:00 2001 From: Dan Marshall Date: Fri, 14 Nov 2025 15:42:21 -0800 Subject: [PATCH 2/3] Fix script path and update viewer initialization functions in UMD test --- packages/html-wrapper/test/test-umd.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/html-wrapper/test/test-umd.html b/packages/html-wrapper/test/test-umd.html index 2f1eb9d8..08b9ad5d 100644 --- a/packages/html-wrapper/test/test-umd.html +++ b/packages/html-wrapper/test/test-umd.html @@ -92,7 +92,7 @@

Test 3: JSON Viewer

- +