mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 19:44:21 +00:00
🔧 Change anchor "link" conditions
This commit is contained in:
parent
60d5cb87a1
commit
fa17489183
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue