diff --git a/src/js/controllers/copayers.js b/src/js/controllers/copayers.js index 726828103..99825adc6 100644 --- a/src/js/controllers/copayers.js +++ b/src/js/controllers/copayers.js @@ -1,8 +1,9 @@ 'use strict'; angular.module('copayApp.controllers').controller('copayersController', - function($scope, $rootScope, $timeout, $log, $modal, profileService, go, notification, isCordova, gettext, gettextCatalog, animationService) { + function($scope, $rootScope, $timeout, $log, $modal, profileService, go, notification, platformInfo, gettext, gettextCatalog, animationService) { var self = this; + var isCordova = platformInfo.isCordova; var delete_msg = gettextCatalog.getString('Are you sure you want to delete this wallet?'); var accept_msg = gettextCatalog.getString('Accept'); diff --git a/src/js/controllers/import.js b/src/js/controllers/import.js index ee2d02e3e..35f27ed8a 100644 --- a/src/js/controllers/import.js +++ b/src/js/controllers/import.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copayApp.controllers').controller('importController', - function($scope, $rootScope, $location, $timeout, $log, profileService, configService, notification, go, sjcl, gettext, lodash, ledger, trezor, derivationPathHelper) { + function($scope, $rootScope, $location, $timeout, $log, profileService, configService, notification, go, sjcl, gettext, lodash, ledger, trezor, derivationPathHelper, platformInfo) { var isChromeApp = platformInfo.isChromeApp; var isDevel = platformInfo.isDevel; diff --git a/src/js/controllers/walletHome.js b/src/js/controllers/walletHome.js index d26860701..f94f926a6 100644 --- a/src/js/controllers/walletHome.js +++ b/src/js/controllers/walletHome.js @@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi var isCordova = platformInfo.isCordova; var isWP = platformInfo.isWP; var isAndroid = platformInfo.isAndroid; - var isChromeApp = platformInfo.isChromeApp; >>> >>> > migration to platformInfo WIP + var isChromeApp = platformInfo.isChromeApp; var self = this; window.ignoreMobilePause = false; diff --git a/src/js/services/notifications.js b/src/js/services/notifications.js index 6b63504d0..e6e464c8d 100644 --- a/src/js/services/notifications.js +++ b/src/js/services/notifications.js @@ -1,9 +1,9 @@ 'use strict'; angular.module('copayApp.services'). -factory('notification', ['$timeout','isCordova', - function($timeout, isCordova) { +factory('notification', function($timeout, platformInfo) { + var isCordova = platformInfo.isCordova; var notifications = []; /* @@ -257,7 +257,7 @@ factory('notification', ['$timeout','isCordova', }; } -]).directive('notifications', function(notification, $compile) { +).directive('notifications', function(notification, $compile) { /** * * It should also parse the arguments passed to it that specify