Show desktop notification state. Provide help if the user has previously denied permission to display them.

This commit is contained in:
Emmanuel ROHEE 2014-08-29 17:11:03 +02:00
parent 0ef54caa28
commit c3a774e414
3 changed files with 39 additions and 14 deletions

View file

@ -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(){});
}
};
}]);