feat: Enable push subscription for mobile devices by default (#4321)
This commit is contained in:
1 parent
63a2566007
commit
9075c90c46
3 files changed
+28
-23
No files matched your search
@@ -37,7 +37,7 @@ const unsubscribe = ({ registration, subscription }) =>
|
||||
|
||||
const sendSubscriptionToBackend = (subscription) =>
|
||||
axios.post('/api/web/push_subscriptions', {
|
||||
data: subscription,
|
||||
subscription,
|
||||
}).then(response => response.data);
|
||||
|
||||
// Last one checks for payload support: https://web-push-book.gauntface.com/chapter-06/01-non-standards-browsers/#no-payload
|
||||
|
||||
Reference in new issue
Block a user