mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46: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();
|
||||
const iframeDoc = this.querySelector("iframe").contentWindow.document;
|
||||
iframeDoc.open();
|
||||
iframeDoc.write(`<script src='${window.customPanelJS}'></script>`);
|
||||
iframeDoc.write(
|
||||
`<!doctype html><script src='${window.customPanelJS}'></script>`
|
||||
);
|
||||
iframeDoc.close();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user