1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-23 03:54:21 +00:00

🔧 Change anchor "link" conditions

This commit is contained in:
Steffo 2021-09-20 16:48:10 +02:00
parent 60d5cb87a1
commit fa17489183
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -23,7 +23,7 @@ export function Anchor({displayStyle, href, ...props}: AnchorProps): JSX.Element
if(!displayStyle) { if(!displayStyle) {
if(href) { if(href) {
// noinspection HttpUrlsUsage // noinspection HttpUrlsUsage
if(href.startsWith("http://") || href.startsWith("https://")) { if(href.startsWith("http://") || href.startsWith("https://") || href.startsWith("/") || !href.includes(":")) {
displayStyle = "link" displayStyle = "link"
} }
else { else {