diff --git a/files/routes/static.py b/files/routes/static.py index f415489c58..215464a762 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -351,9 +351,10 @@ def formatting(v): return render_template("formatting.html", v=v) -@app.get("/worker.js") +@app.get("/service-worker.js") def serviceworker(): - with open("files/assets/js/worker.js", "r", encoding="utf-8") as f: return Response(f.read(), mimetype='application/javascript') + with open("files/assets/js/service-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/home.html b/files/templates/home.html index 5339fb351b..153870846e 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -203,7 +203,7 @@ {% if PUSHER_ID != 'blahblahblah' and v %}