@coasys/ad4m-connect 0.13.0-test-5 → 0.13.0-test-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +2 -1
- package/dist/core.js.map +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -10763,7 +10763,8 @@ var Ad4mConnect = class extends EventTarget {
|
|
|
10763
10763
|
try {
|
|
10764
10764
|
this.port = parsedPort;
|
|
10765
10765
|
this.token = normalizedToken;
|
|
10766
|
-
|
|
10766
|
+
const rawUrl = event.data.url;
|
|
10767
|
+
this.url = rawUrl && typeof rawUrl === "string" && rawUrl.startsWith("http") ? rawUrl : `http://localhost:${parsedPort}`;
|
|
10767
10768
|
setLocal("ad4m-port", parsedPort.toString());
|
|
10768
10769
|
if (normalizedToken) {
|
|
10769
10770
|
setLocal("ad4m-token", normalizedToken);
|