Fix new panel build for 0.70.0 (#481)

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
Pascal Vizeli 2018-05-28 21:24:17 +02:00 committed by GitHub
parent a85172f30b
commit 316190dff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 104 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -16,20 +16,23 @@
<body> <body>
<hassio-app></hassio-app> <hassio-app></hassio-app>
<script> <script>
function addScript(src) { function addScript(src) {
var e = document.createElement('script'); var e = document.createElement('script');
e.src = src; e.src = src;
document.head.appendChild(e); document.write(e.outerHTML);
} }
var webComponentsSupported = ( var webComponentsSupported = (
'customElements' in window && 'customElements' in window &&
'import' in document.createElement('link') && 'import' in document.createElement('link') &&
'content' in document.createElement('template')); 'content' in document.createElement('template'));
if (!webComponentsSupported) { if (!webComponentsSupported) {
addScript('/static/webcomponents-lite.js'); addScript('/static/webcomponents-bundle.js');
} }
</script> </script>
<!--
Disabled while we make Home Assistant able to serve the right files.
<script src="./app.js"></script>
-->
<link rel='import' href='./hassio-app.html'> <link rel='import' href='./hassio-app.html'>
<link rel='import' href='/static/mdi.html' async>
</body> </body>
</html> </html>

Binary file not shown.

@ -1 +1 @@
Subproject commit eeba117e4bff3ae408b4759880ab1be0d1e500fb Subproject commit 045b1d02be40f95b0674c50fb36c1d9c9e52b291