mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:09:53 +01:00
Don't check push subscription when not logged in
This commit is contained in:
parent
e48ec8565a
commit
9fd3940b7d
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ export function unsubscribeHandler(): void {
|
|||
}
|
||||
|
||||
export function checkSubscription(subscription: PushSubscription): void {
|
||||
// We can have a subscription active for any user while not logged in.
|
||||
if (document.body.classList.contains('not-logged-in')) return;
|
||||
|
||||
post('/ajax/webpush/check', {
|
||||
body: {
|
||||
endpoint: subscription.endpoint
|
||||
|
|
Loading…
Reference in a new issue