mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-23 18:29:19 -05:00
fix(webpush): remove backend checks
Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me>
This commit is contained in:
@@ -36,14 +36,7 @@ export const verifyPushSubscription = async (
|
||||
const { subscription } = await getPushSubscription();
|
||||
|
||||
if (!subscription) {
|
||||
try {
|
||||
const { data: backendSubscriptions } = await axios.get<
|
||||
UserPushSubscription[]
|
||||
>(`/api/v1/user/${userId}/pushSubscriptions`);
|
||||
return backendSubscriptions.length > 0;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const appServerKey = subscription.options?.applicationServerKey;
|
||||
|
||||
Reference in New Issue
Block a user