mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Fix custom panel include (#1539)
This commit is contained in:
parent
50f417a7e2
commit
a9f29a3151
@ -41,6 +41,7 @@
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
window.customPanelJS = '<%= customPanelJS %>';
|
||||
window.noAuth = '{{ no_auth }}';
|
||||
window.useOAuth = '{{ use_oauth }}'
|
||||
window.Polymer = {
|
||||
|
@ -95,7 +95,7 @@ It will have access to all data in Home Assistant.
|
||||
`;
|
||||
const iframeDoc = this.querySelector('iframe').contentWindow.document;
|
||||
iframeDoc.open();
|
||||
iframeDoc.write(`<script src='${__PUBLIC_PATH__}custom-panel.js'></script>`);
|
||||
iframeDoc.write(`<script src='${window.customPanelJS}'></script>`);
|
||||
iframeDoc.close();
|
||||
}
|
||||
|
||||
|
@ -190,6 +190,7 @@ function createConfig(isProdBuild, latestBuild) {
|
||||
compatibility: assets.chunks.compatibility.entry,
|
||||
appjs: assets.chunks.app.entry,
|
||||
corejs: assets.chunks.core.entry,
|
||||
customPanelJS: assets.chunks['custom-panel'].entry,
|
||||
}),
|
||||
filename: `index.html`,
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user