diff --git a/files/routes/static.py b/files/routes/static.py index 191026830..c17a9b272 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -539,13 +539,9 @@ def formatting(v): return render_template("formatting.html", v=v) -@app.get("/service-worker.js") +@app.get("/worker.js") def serviceworker(): - with open("files/assets/js/service-worker.js", "r", encoding="utf-8") as f: return Response(f.read(), mimetype='application/javascript') - -@app.get("/offline-service-worker.js") -def offlineserviceworker(): - with open("files/assets/js/offline-service-worker.js", "r", encoding="utf-8") as f: return Response(f.read(), mimetype='application/javascript') + with open("files/assets/js/worker.js", "r", encoding="utf-8") as f: return Response(f.read(), mimetype='application/javascript') @app.get("/settings/security") @auth_required diff --git a/files/templates/chat.html b/files/templates/chat.html index 62f6f028f..103c25798 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -106,7 +106,7 @@
- + {% include "header.html" %} diff --git a/files/templates/default.html b/files/templates/default.html index c1fc0e1f0..ba8af03f2 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -10,7 +10,7 @@ {% endif %} - + {% if v %} diff --git a/files/templates/home.html b/files/templates/home.html index e9f313447..0b77ad49a 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -199,7 +199,7 @@ {% if PUSHER_ID != 'blahblahblah' and v %}