mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-21 00:24:06 -04:00
Show desktop notification state. Provide help if the user has previously denied permission to display them.
This commit is contained in:
parent
0ef54caa28
commit
c3a774e414
3 changed files with 39 additions and 14 deletions
|
@ -69,13 +69,6 @@ angular.module('MatrixWebClientController', ['matrixService', 'mPresence', 'even
|
|||
$scope.logout();
|
||||
});
|
||||
|
||||
$scope.requestNotifications = function() {
|
||||
if (window.Notification) {
|
||||
console.log("Notification.permission: " + window.Notification.permission);
|
||||
window.Notification.requestPermission(function(){});
|
||||
}
|
||||
};
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue