notification fix
This commit is contained in:
parent
b25e9af1d5
commit
2642dde345
@ -148,8 +148,8 @@ def login_route(username: str, password: str) -> Response:
|
||||
def vapid_public_key():
|
||||
"""Provides the VAPID public key."""
|
||||
public_key = current_app.config["VAPID_PUBLIC_KEY"]
|
||||
# Clean up the key
|
||||
public_key = public_key.replace("-----BEGIN PUBLIC KEY-----", "").replace("-----END PUBLIC KEY-----", "").strip()
|
||||
# Clean up the key by removing headers, footers, and all whitespace
|
||||
public_key = "".join(public_key.replace("-----BEGIN PUBLIC KEY-----", "").replace("-----END PUBLIC KEY-----", "").split())
|
||||
return jsonify({"public_key": public_key})
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user