Merge pull request #4243 from gabrielbazan7/fix/DesktopNotif

mobile should be exclude
This commit is contained in:
Matias Alejo Garcia 2016-05-31 17:13:03 -03:00
commit cfafb9a92c
1 changed files with 3 additions and 3 deletions

View File

@ -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'