Added message handler
This commit is contained in:
@@ -278,6 +278,7 @@ export default class App extends Vue {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private askPermission(): Promise<NotificationPermission> {
|
||||
// Check if Notifications are supported
|
||||
if (!("Notification" in window)) {
|
||||
@@ -311,6 +312,7 @@ export default class App extends Vue {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
async turnOnNotifications() {
|
||||
return this.askPermission()
|
||||
.then((permission) => {
|
||||
|
||||
Reference in New Issue
Block a user