mobile should be exclude

This commit is contained in:
Gabriel Bazán 2016-05-24 11:18:06 -03:00
commit 2ec42f7709

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'