forked from MarseyWorld/MarseyWorld
fix push notifications
parent
bceb87d58c
commit
964318fe5d
|
@ -351,9 +351,10 @@ def formatting(v):
|
||||||
|
|
||||||
return render_template("formatting.html", v=v)
|
return render_template("formatting.html", v=v)
|
||||||
|
|
||||||
@app.get("/worker.js")
|
@app.get("/service-worker.js")
|
||||||
def serviceworker():
|
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")
|
@app.get("/settings/security")
|
||||||
@auth_required
|
@auth_required
|
||||||
|
|
|
@ -203,7 +203,7 @@
|
||||||
{% if PUSHER_ID != 'blahblahblah' and v %}
|
{% if PUSHER_ID != 'blahblahblah' and v %}
|
||||||
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
|
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
|
||||||
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
|
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
|
||||||
<script src="/assets/js/pusher.js?v=243"></script>
|
<script src="/assets/js/pusher.js?v=244"></script>
|
||||||
<script>
|
<script>
|
||||||
if (typeof Android != 'undefined') {
|
if (typeof Android != 'undefined') {
|
||||||
Android.Subscribe('{{request.host}}{{v.id}}');
|
Android.Subscribe('{{request.host}}{{v.id}}');
|
||||||
|
|
Loading…
Reference in New Issue