summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-10-30 18:12:39 -0400
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-10-30 18:12:39 -0400
commit6f9e83a73b05f60c4d82ea2dc9bc72478b502301 (patch)
tree62f15645aa3437553f16b5333d8ecef6f9801a35 /www/js/EventCtrl.js
parent5b64d30ee962e7ce6d43c5c752739fd19c6ba77d (diff)
#59 - initial patches
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 76d0937a..816d25e4 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -837,6 +837,7 @@ angular.module('zmApp.controllers')
//reset badge count
+ if (window.cordova && window.cordova.plugins.notification) {
$cordovaBadge.set(0).then(function() {
// You have permission, badge set.
}, function(err) {
@@ -845,6 +846,7 @@ angular.module('zmApp.controllers')
});
$cordovaLocalNotification.clearAll();
+ }
});