Merge pull request #4243 from gabrielbazan7/fix/DesktopNotif
mobile should be exclude
This commit is contained in:
commit
cfafb9a92c
1 changed files with 3 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.services').
|
angular.module('copayApp.services').
|
||||||
factory('notification', ['$timeout',
|
factory('notification', ['$timeout','isCordova',
|
||||||
function($timeout) {
|
function($timeout, isCordova) {
|
||||||
|
|
||||||
var notifications = [];
|
var notifications = [];
|
||||||
|
|
||||||
|
|
@ -225,7 +225,7 @@ factory('notification', ['$timeout',
|
||||||
window.navigator.vibrate([200, 100, 200]);
|
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, {
|
new window.Notification(title, {
|
||||||
body: content,
|
body: content,
|
||||||
icon: 'img/notification.png'
|
icon: 'img/notification.png'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue