add target="_blank" prop to LinkText for safari (#606)

This commit is contained in:
Ansh 2023-05-09 13:01:42 -04:00 committed by GitHub
parent cfdfd8f395
commit 28f7ff76a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View file

@ -66,6 +66,10 @@ export function isBskyAppUrl(url: string): boolean {
return url.startsWith('https://bsky.app/')
}
export function isExternalUrl(url: string): boolean {
return !isBskyAppUrl(url) && url.startsWith('http')
}
export function isBskyPostUrl(url: string): boolean {
if (isBskyAppUrl(url)) {
try {