mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Fix custom panel doctype (#2977)
This commit is contained in:
parent
be9402bd05
commit
b82a1c75c4
@ -98,7 +98,9 @@ It will have access to all data in Home Assistant.
|
|||||||
`.trim();
|
`.trim();
|
||||||
const iframeDoc = this.querySelector("iframe").contentWindow.document;
|
const iframeDoc = this.querySelector("iframe").contentWindow.document;
|
||||||
iframeDoc.open();
|
iframeDoc.open();
|
||||||
iframeDoc.write(`<script src='${window.customPanelJS}'></script>`);
|
iframeDoc.write(
|
||||||
|
`<!doctype html><script src='${window.customPanelJS}'></script>`
|
||||||
|
);
|
||||||
iframeDoc.close();
|
iframeDoc.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user