diff --git a/gulp/tasks/hassio-panel.js b/gulp/tasks/hassio-panel.js index 803a4b67be..f39691cd61 100755 --- a/gulp/tasks/hassio-panel.js +++ b/gulp/tasks/hassio-panel.js @@ -1,6 +1,7 @@ const del = require('del'); const gulp = require('gulp'); const rename = require('gulp-rename'); +const replace = require('gulp-batch-replace'); const gzip = require('gulp-gzip'); const path = require('path'); const runSequence = require('run-sequence'); @@ -20,6 +21,8 @@ const DEPS_TO_STRIP = [ 'bower_components/paper-styles/color.html', ]; +const es5Extra = ""; + async function buildHassioPanel() { const stream = await bundledStreamFromHTML('hassio/hassio-app.html', { strategy: stripImportsStrategy(DEPS_TO_STRIP) @@ -32,6 +35,7 @@ async function buildHassioPanel() { function copyHassioIndex() { return gulp.src('hassio/index.html') + .pipe(replace([['', es5Extra]])) .pipe(gulp.dest(OUTPUT_DIR)); } diff --git a/hassio/index.html b/hassio/index.html index e8cf3df57a..8e21a64064 100644 --- a/hassio/index.html +++ b/hassio/index.html @@ -11,6 +11,7 @@ padding: 0; } + @@ -20,9 +21,6 @@ e.src = src; document.head.appendChild(e); } - if (!window.parent.HASS_DEV) { - addScript('/frontend_es5/custom-elements-es5-adapter.js'); - } var webComponentsSupported = ( 'customElements' in window && 'import' in document.createElement('link') &&