|
|
@ -460,7 +460,18 @@ export default class App extends Vue { |
|
|
|
resolve(); |
|
|
|
}) |
|
|
|
.catch((error) => { |
|
|
|
console.error("Push subscription failed:", error, options); |
|
|
|
console.error( |
|
|
|
"Subscription or server communication failed:", |
|
|
|
error, |
|
|
|
options, |
|
|
|
); |
|
|
|
|
|
|
|
// Inform the user about the issue |
|
|
|
alert( |
|
|
|
"We encountered an issue setting up push notifications. " + |
|
|
|
"If you wish to revoke notification permissions, please do so in your browser settings.", |
|
|
|
); |
|
|
|
|
|
|
|
reject(error); |
|
|
|
}); |
|
|
|
}); |
|
|
|