Use final specification for new WebPush subscriptions in web interface (#33587)

This commit is contained in:
Claire 2025-01-14 11:42:06 +01:00 committed by GitHub
parent a9a8b6b701
commit e2f085e2b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ const unsubscribe = ({ registration, subscription }) =>
subscription ? subscription.unsubscribe().then(() => registration) : registration;
const sendSubscriptionToBackend = (subscription) => {
const params = { subscription };
const params = { subscription: { ...subscription.toJSON(), standard: true } };
if (me) {
const data = pushNotificationsSetting.get(me);