tightening local accounts security. added logging
This commit is contained in:
@ -141,7 +141,8 @@ function PwaManager({ subs }) {
|
||||
body: JSON.stringify({ subscription: sub, id: session.user.id })
|
||||
}).then(async response => {
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to save subscription data on server.');
|
||||
//throw new Error('Failed to save subscription data on server.');
|
||||
console.log('Failed to save subscription data on server.');
|
||||
}
|
||||
else {
|
||||
console.log('Subscription data saved on server.');
|
||||
|
@ -102,7 +102,8 @@ function PwaManagerNotifications() {
|
||||
body: JSON.stringify({ subscription: sub, id: session.user.id })
|
||||
}).then(async response => {
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to save subscription data on server.');
|
||||
// throw new Error('Failed to save subscription data on server.');
|
||||
console.log('Failed to save subscription data on server.');
|
||||
}
|
||||
else {
|
||||
console.log('Subscription data saved on server.');
|
||||
|
Reference in New Issue
Block a user