Ask for enable html5 notification on chrome

This commit is contained in:
Gustavo Cortez 2014-05-20 11:05:18 -03:00
commit 70cae4135f
3 changed files with 5 additions and 3 deletions

View file

@ -23,7 +23,6 @@ angular.module('copay.header').controller('HeaderController',
// Initialize alert notification (not show when init wallet)
$rootScope.txAlertCount = 0;
$notification.enableHtml5Mode(); // for chrome: if support, enable it
$rootScope.$watch('txAlertCount', function(txAlertCount) {
if (txAlertCount && txAlertCount > 0) {
$notification.info('New Transaction', ($rootScope.txAlertCount == 1) ? 'You have a pending transaction proposal' : 'You have ' + $rootScope.txAlertCount + ' pending transaction proposals', txAlertCount);