master
Aevann1 2022-05-28 22:25:28 +02:00
parent 076c799c6a
commit 6584919d41
10 changed files with 11 additions and 15 deletions

View File

@ -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

View File

@ -106,7 +106,7 @@
</head>
<body>
<script src="/assets/js/bootstrap.js?v=254"></script>
<script src="/assets/js/bootstrap.js?v=255"></script>
{% include "header.html" %}

View File

@ -10,7 +10,7 @@
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
{% endif %}
<script src="/assets/js/bootstrap.js?v=254"></script>
<script src="/assets/js/bootstrap.js?v=255"></script>
{% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style>
<link rel="stylesheet" href="{{asset('css/main.css')}}">

View File

@ -199,7 +199,7 @@
{% if PUSHER_ID != 'blahblahblah' and v %}
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
<script src="/assets/js/pusher.js?v=242"></script>
<script src="/assets/js/pusher.js?v=243"></script>
<script>
if (typeof Android != 'undefined') {
Android.Subscribe('{{request.host}}{{v.id}}');

View File

@ -8,7 +8,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/assets/js/bootstrap.js?v=254"></script>
<script src="/assets/js/bootstrap.js?v=255"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View File

@ -5,7 +5,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/assets/js/bootstrap.js?v=254"></script>
<script src="/assets/js/bootstrap.js?v=255"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View File

@ -6,7 +6,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/assets/js/bootstrap.js?v=254"></script>
<script src="/assets/js/bootstrap.js?v=255"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View File

@ -7,7 +7,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/assets/js/bootstrap.js?v=254"></script>
<script src="/assets/js/bootstrap.js?v=255"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View File

@ -8,7 +8,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/assets/js/bootstrap.js?v=254"></script>
<script src="/assets/js/bootstrap.js?v=255"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View File

@ -5,7 +5,7 @@
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/assets/js/bootstrap.js?v=254"></script>
<script src="/assets/js/bootstrap.js?v=255"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">