mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17: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"
|
||||
) {
|
||||
const hrefNodes = node.href.split("/");
|
||||
if (document.location.pathname.includes("hassio")) {
|
||||
if (document.location.pathname.startsWith("/hassio")) {
|
||||
node.target = "_parent";
|
||||
} else {
|
||||
node.target = "_self";
|
||||
|
Loading…
x
Reference in New Issue
Block a user