mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-14 09:09:44 +00:00
Typo fix: protical -> protocol
This commit is contained in:
committed by
MathMan05
parent
cc409b3c3d
commit
acddb488a5
@@ -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) {
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user