enable service worker again

This commit is contained in:
Bruno Windels 2019-10-12 20:23:37 +02:00
parent 131a2db87d
commit 3c57ebf8a0

View file

@ -44,7 +44,7 @@ async function buildHtml() {
`<script type="text/javascript">main(document.body);</script>`); `<script type="text/javascript">main(document.body);</script>`);
removeOrEnableScript(doc("script#phone-debug-pre"), debug); removeOrEnableScript(doc("script#phone-debug-pre"), debug);
removeOrEnableScript(doc("script#phone-debug-post"), debug); removeOrEnableScript(doc("script#phone-debug-post"), debug);
removeOrEnableScript(doc("script#service-worker"), false); removeOrEnableScript(doc("script#service-worker"), offline);
if (offline) { if (offline) {
doc("html").attr("manifest", "manifest.appcache"); doc("html").attr("manifest", "manifest.appcache");
doc("head").append(`<link rel="manifest" href="manifest.json">`); doc("head").append(`<link rel="manifest" href="manifest.json">`);