From 6584919d41592268da23a337f4192d62cb865e87 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 28 May 2022 22:25:28 +0200 Subject: [PATCH] sdf --- files/routes/static.py | 8 ++------ files/templates/chat.html | 2 +- files/templates/default.html | 2 +- files/templates/home.html | 2 +- files/templates/login.html | 2 +- files/templates/settings.html | 2 +- files/templates/settings2.html | 2 +- files/templates/sign_up.html | 2 +- files/templates/sign_up_failed_ref.html | 2 +- files/templates/submit.html | 2 +- 10 files changed, 11 insertions(+), 15 deletions(-) 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 %}
{{request.host}}{{v.id}}
{{PUSHER_ID}}
- + + diff --git a/files/templates/settings.html b/files/templates/settings.html index 9d44df711..62d63e739 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -5,7 +5,7 @@ - + diff --git a/files/templates/settings2.html b/files/templates/settings2.html index f939dad26..538e54b2e 100644 --- a/files/templates/settings2.html +++ b/files/templates/settings2.html @@ -6,7 +6,7 @@ - + diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index 02b69324b..dc8c2526c 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -7,7 +7,7 @@ - + diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html index 7d6a5aa0c..cf03492c2 100644 --- a/files/templates/sign_up_failed_ref.html +++ b/files/templates/sign_up_failed_ref.html @@ -8,7 +8,7 @@ - + diff --git a/files/templates/submit.html b/files/templates/submit.html index ed8c50f20..67fec2350 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -5,7 +5,7 @@ - +