mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
weblink target (#3431)
This commit is contained in:
parent
54ea6176aa
commit
dcfed5d7e1
@ -37,7 +37,10 @@ class HuiWeblinkRow extends LitElement implements EntityRow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<a href="${this._config.url}" target="_blank">
|
<a
|
||||||
|
href=${this._config.url}
|
||||||
|
target=${this._config.url.indexOf("://") !== -1 ? "_blank" : ""}
|
||||||
|
>
|
||||||
<ha-icon .icon="${this._config.icon}"></ha-icon>
|
<ha-icon .icon="${this._config.icon}"></ha-icon>
|
||||||
<div>${this._config.name}</div>
|
<div>${this._config.name}</div>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user