From acddb488a599cf3cd7bb7a4cbd3c0e8f667a37a2 Mon Sep 17 00:00:00 2001 From: "[it/its]@Rory&" <[it/its]@Rory&> Date: Tue, 30 Dec 2025 21:42:04 +0100 Subject: [PATCH] Typo fix: protical -> protocol --- src/webpage/markdown.ts | 4 ++-- src/webpage/utils/utils.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/webpage/markdown.ts b/src/webpage/markdown.ts index a584131..e936f00 100644 --- a/src/webpage/markdown.ts +++ b/src/webpage/markdown.ts @@ -719,8 +719,8 @@ class MarkDown { } if (URL.canParse(build) && txt[j] === ">") { const url = new URL(build); - const allowedProticals = new Set(["https:", "http:"]); - if (allowedProticals.has(url.protocol)) { + const allowedprotocols = new Set(["https:", "http:"]); + if (allowedprotocols.has(url.protocol)) { i = j; if (keep) { diff --git a/src/webpage/utils/utils.ts b/src/webpage/utils/utils.ts index 83013d6..7e513cd 100644 --- a/src/webpage/utils/utils.ts +++ b/src/webpage/utils/utils.ts @@ -611,7 +611,7 @@ export async function getApiUrlsV1(str: string): Promise { const temp = new URL(str); temp.port = ""; const newOrgin = temp.host; - const protical = temp.protocol; + const protocol = temp.protocol; const tempurls = { api: new URL(urls.api), cdn: new URL(urls.cdn), @@ -619,16 +619,16 @@ export async function getApiUrlsV1(str: string): Promise { wellknown: new URL(urls.wellknown), }; tempurls.api.host = newOrgin; - tempurls.api.protocol = protical; + tempurls.api.protocol = protocol; tempurls.cdn.host = newOrgin; - tempurls.api.protocol = protical; + tempurls.api.protocol = protocol; tempurls.gateway.host = newOrgin; tempurls.gateway.protocol = temp.protocol === "http:" ? "ws:" : "wss:"; tempurls.wellknown.host = newOrgin; - tempurls.wellknown.protocol = protical; + tempurls.wellknown.protocol = protocol; try { if (