ref
This commit is contained in:
parent
57ea60d8a6
commit
fdc25da720
2 changed files with 18 additions and 28 deletions
|
|
@ -38,24 +38,13 @@ angular.module('copayApp.controllers').controller('rateAppController', function(
|
|||
$scope.goAppStore = function() {
|
||||
var defaults = configService.getDefaults();
|
||||
var url;
|
||||
if (isAndroid) {
|
||||
if ($scope.appName == 'Copay')
|
||||
url = defaults.rateCopay.android;
|
||||
if ($scope.appName == 'BitPay')
|
||||
url = defaults.rateBitPay.android;
|
||||
}
|
||||
if (isIOS) {
|
||||
if ($scope.appName == 'Copay')
|
||||
url = defaults.rateCopay.ios;
|
||||
if ($scope.appName == 'BitPay')
|
||||
url = defaults.rateBitPay.ios;
|
||||
}
|
||||
// if (isWP) {
|
||||
// if ($scope.appName == 'Copay')
|
||||
// url = defaults.rateCopay.windows;
|
||||
// if ($scope.appName == 'BitPay')
|
||||
// url = defaults.rateBitPay.windows;
|
||||
// }
|
||||
if (isAndroid)
|
||||
url = $scope.appName == 'Copay' ? defaults.rateApp.copay.android : defaults.rateApp.bitpay.android;
|
||||
if (isIOS)
|
||||
url = $scope.appName == 'Copay' ? defaults.rateApp.copay.ios : defaults.rateApp.bitpay.ios;
|
||||
// if (isWP)
|
||||
// url = $scope.appName == 'Copay' ? defaults.rateApp.copay.windows : defaults.rateApp.bitpay.windows;
|
||||
|
||||
externalLinkService.open(url);
|
||||
$state.go('tabs.rate.complete', {
|
||||
score: $stateParams.score,
|
||||
|
|
|
|||
|
|
@ -19,16 +19,17 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
|||
url: 'https://bitpay.com/wallet',
|
||||
},
|
||||
|
||||
rateBitPay: {
|
||||
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=1149581638&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
||||
android: 'https://play.google.com/store/apps/details?id=com.bitpay.wallet',
|
||||
wp: ''
|
||||
},
|
||||
|
||||
rateCopay: {
|
||||
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=951330296&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
||||
android: 'https://play.google.com/store/apps/details?id=com.bitpay.copay',
|
||||
wp: ''
|
||||
rateApp: {
|
||||
bitpay: {
|
||||
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=1149581638&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
||||
android: 'https://play.google.com/store/apps/details?id=com.bitpay.wallet',
|
||||
wp: ''
|
||||
},
|
||||
copay: {
|
||||
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=951330296&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
||||
android: 'https://play.google.com/store/apps/details?id=com.bitpay.copay',
|
||||
wp: ''
|
||||
}
|
||||
},
|
||||
// wallet default config
|
||||
wallet: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue