Typo fix: protical -> protocol

This commit is contained in:
[it/its]@Rory&
2025-12-31 19:14:07 -06:00
committed by MathMan05
parent cc409b3c3d
commit acddb488a5
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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) {
+4 -4
View File
@@ -611,7 +611,7 @@ export async function getApiUrlsV1(str: string): Promise<InstanceUrls | null> {
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<InstanceUrls | null> {
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 (