Disables alert() function for chromeapp

This commit is contained in:
Gustavo Maximiliano Cortez 2015-08-11 01:21:50 -03:00
commit 1613062f48
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('indexController', function($rootScope, $scope, $log, $filter, $timeout, lodash, go, profileService, configService, isCordova, rateService, storageService, addressService, gettextCatalog, gettext, amMoment, nodeWebkit, addonManager, feeService) { angular.module('copayApp.controllers').controller('indexController', function($rootScope, $scope, $log, $filter, $timeout, lodash, go, profileService, configService, isCordova, rateService, storageService, addressService, gettextCatalog, gettext, amMoment, nodeWebkit, addonManager, feeService, isChromeApp) {
var self = this; var self = this;
self.isCordova = isCordova; self.isCordova = isCordova;
self.onGoingProcess = {}; self.onGoingProcess = {};
@ -752,8 +752,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
'Wallet Server Error', ['OK'] 'Wallet Server Error', ['OK']
); );
} else { } else {
if (!isChromeApp) {
alert(err); alert(err);
} }
}
}; };
self.deviceError = function(err) { self.deviceError = function(err) {
@ -764,8 +766,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
'Device Error', ['OK'] 'Device Error', ['OK']
); );
} else { } else {
if (!isChromeApp) {
alert(err); alert(err);
} }
}
}; };