dsh-interconnect 0.11.22 → 0.11.23
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.
|
@@ -1738,7 +1738,7 @@ function timingSafeEqual(a, b) {
|
|
|
1738
1738
|
return constantTimeEqual(createHash("sha256").update(a, "utf8").digest(), createHash("sha256").update(b, "utf8").digest());
|
|
1739
1739
|
}
|
|
1740
1740
|
function linkUrl(origin) {
|
|
1741
|
-
const url = new URL(
|
|
1741
|
+
const url = new URL(LINK_CHANNEL, origin);
|
|
1742
1742
|
if (url.protocol === "http:") url.protocol = "ws:";
|
|
1743
1743
|
else if (url.protocol === "https:") url.protocol = "wss:";
|
|
1744
1744
|
if (url.protocol !== "ws:" && url.protocol !== "wss:") {
|