From 2ec42f7709869a4f3f33faed0e077bd36ded605c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Tue, 24 May 2016 11:18:06 -0300 Subject: [PATCH] mobile should be exclude --- src/js/services/notifications.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/services/notifications.js b/src/js/services/notifications.js index e1e60f07e..6b63504d0 100644 --- a/src/js/services/notifications.js +++ b/src/js/services/notifications.js @@ -1,8 +1,8 @@ 'use strict'; angular.module('copayApp.services'). -factory('notification', ['$timeout', - function($timeout) { +factory('notification', ['$timeout','isCordova', + function($timeout, isCordova) { var notifications = []; @@ -225,7 +225,7 @@ factory('notification', ['$timeout', window.navigator.vibrate([200, 100, 200]); }; - if (document.hidden && (type == 'info' || type == 'funds')) { + if (document.hidden && (type == 'info' || type == 'funds') && !isCordova) { new window.Notification(title, { body: content, icon: 'img/notification.png'