feat: handle absolute internal links for stacked notes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export const LINKS = ['http://', 'https://']
|
||||
export const LINKS = ["http://", "https://"]
|
||||
|
||||
export const isExternalLink = (href: string) =>
|
||||
!href.startsWith(window.location.origin) &&
|
||||
LINKS.some((link) => href.startsWith(link))
|
||||
|
||||
Reference in New Issue
Block a user