mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
use startsWith
This commit is contained in:
parent
dbc3bc81a7
commit
d9283c17eb
@ -48,7 +48,7 @@ class HaMarkdownElement extends UpdatingElement {
|
|||||||
node.host === "my.home-assistant.io"
|
node.host === "my.home-assistant.io"
|
||||||
) {
|
) {
|
||||||
const hrefNodes = node.href.split("/");
|
const hrefNodes = node.href.split("/");
|
||||||
if (document.location.pathname.includes("hassio")) {
|
if (document.location.pathname.startsWith("/hassio")) {
|
||||||
node.target = "_parent";
|
node.target = "_parent";
|
||||||
} else {
|
} else {
|
||||||
node.target = "_self";
|
node.target = "_self";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user