diff --git a/docs/dist/v1/chartifact.editor.umd.js b/docs/dist/v1/chartifact.editor.umd.js index adb27c31..30b43fc3 100644 --- a/docs/dist/v1/chartifact.editor.umd.js +++ b/docs/dist/v1/chartifact.editor.umd.js @@ -2952,8 +2952,8 @@ document.addEventListener('DOMContentLoaded', () => { (_a = this.iframe.contentWindow) == null ? void 0 : _a.postMessage(message, "*"); } getDependencies() { - const { hostname, origin } = window.location; - const url = hostname === "localhost" ? origin : "https://microsoft.github.io"; + const { hostname, origin, port } = window.location; + const url = hostname === "localhost" && port === "4000" ? origin : "https://microsoft.github.io"; return ` diff --git a/docs/dist/v1/chartifact.host.umd.js b/docs/dist/v1/chartifact.host.umd.js index 681d27c9..0dc12280 100644 --- a/docs/dist/v1/chartifact.host.umd.js +++ b/docs/dist/v1/chartifact.host.umd.js @@ -2952,8 +2952,8 @@ document.addEventListener('DOMContentLoaded', () => { (_a = this.iframe.contentWindow) == null ? void 0 : _a.postMessage(message, "*"); } getDependencies() { - const { hostname, origin } = window.location; - const url = hostname === "localhost" ? origin : "https://microsoft.github.io"; + const { hostname, origin, port } = window.location; + const url = hostname === "localhost" && port === "4000" ? origin : "https://microsoft.github.io"; return ` diff --git a/docs/dist/v1/chartifact.sandbox.umd.js b/docs/dist/v1/chartifact.sandbox.umd.js index 0658ce30..57207406 100644 --- a/docs/dist/v1/chartifact.sandbox.umd.js +++ b/docs/dist/v1/chartifact.sandbox.umd.js @@ -303,8 +303,8 @@ document.addEventListener('DOMContentLoaded', () => { (_a = this.iframe.contentWindow) == null ? void 0 : _a.postMessage(message, "*"); } getDependencies() { - const { hostname, origin } = window.location; - const url = hostname === "localhost" ? origin : "https://microsoft.github.io"; + const { hostname, origin, port } = window.location; + const url = hostname === "localhost" && port === "4000" ? origin : "https://microsoft.github.io"; return ` 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 @@