mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #4243 from gabrielbazan7/fix/DesktopNotif
mobile should be exclude
This commit is contained in:
commit
cfafb9a92c
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue