Added finger

This commit is contained in:
Sal Rahman 2023-08-16 09:54:41 -07:00
parent 1dad20685e
commit d2345b9acf
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ const embedId = `embed${Math.random().toString().replace(/\D/, "")}`;
let tweetHeight = ref(150);
const requestUrl = new URL(props.url);
if (!["http:", "https:", "gopher:", "gemini:", "matrix:", "ipfs:", "ipns:"].includes(requestUrl.protocol))
if (!["http:", "https:", "gopher:", "gemini:", "matrix:", "ipfs:", "ipns:", "finger:"].includes(requestUrl.protocol))
throw new Error("invalid url");
if (

View file

@ -46,7 +46,7 @@ const props = defineProps<{
const self = props.url.startsWith(local);
const url = parseUri(props.url);
if (!["http", "https", "gopher", "gemini", "matrix", "ipfs", "ipns"].includes(url.scheme)) throw new Error("invalid url");
if (!["http", "https", "gopher", "gemini", "matrix", "ipfs", "ipns", "finger"].includes(url.scheme)) throw new Error("invalid url");
const el = ref();
useTooltip(el, (showing) => {