1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 10:48:44 +00:00

Ask for reload on service worker change (#1302)

* Ask for reload on service worker change

* Lint and remove alert

* Fix it once and for all

* Lint
This commit is contained in:
Paulus Schoutsen
2018-06-19 15:50:41 -04:00
committed by GitHub
parent ce4280e816
commit 87bd9ed48a
6 changed files with 54 additions and 11 deletions

View File

@@ -23,10 +23,6 @@ function generateIndex(es6) {
];
if (!es6) {
toReplace.push([
'/service_worker.js', '/service_worker_es5.js'
]);
const compatibilityPath = `/frontend_es5/compatibility-${md5(path.resolve(config.output_es5, 'compatibility.js'))}.js`;
const es5Extra = `
<script src='${compatibilityPath}'></script>