Better error handler for push notifications subscription

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-06-24 11:17:30 +02:00
parent ebe2e148d0
commit 54c23c6673
4 changed files with 17 additions and 10 deletions

View File

@@ -597,6 +597,10 @@ export default class Notifications extends Vue {
});
this.subscribed = true;
console.log(data);
} else {
this.$notifier.error(
this.$t("Error while subscribing to push notifications") as string
);
}
} else {
console.log("can't do webpush");