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() {
|
$scope.goAppStore = function() {
|
||||||
var defaults = configService.getDefaults();
|
var defaults = configService.getDefaults();
|
||||||
var url;
|
var url;
|
||||||
if (isAndroid) {
|
if (isAndroid)
|
||||||
if ($scope.appName == 'Copay')
|
url = $scope.appName == 'Copay' ? defaults.rateApp.copay.android : defaults.rateApp.bitpay.android;
|
||||||
url = defaults.rateCopay.android;
|
if (isIOS)
|
||||||
if ($scope.appName == 'BitPay')
|
url = $scope.appName == 'Copay' ? defaults.rateApp.copay.ios : defaults.rateApp.bitpay.ios;
|
||||||
url = defaults.rateBitPay.android;
|
// if (isWP)
|
||||||
}
|
// url = $scope.appName == 'Copay' ? defaults.rateApp.copay.windows : defaults.rateApp.bitpay.windows;
|
||||||
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;
|
|
||||||
// }
|
|
||||||
externalLinkService.open(url);
|
externalLinkService.open(url);
|
||||||
$state.go('tabs.rate.complete', {
|
$state.go('tabs.rate.complete', {
|
||||||
score: $stateParams.score,
|
score: $stateParams.score,
|
||||||
|
|
|
||||||
|
|
@ -19,16 +19,17 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
||||||
url: 'https://bitpay.com/wallet',
|
url: 'https://bitpay.com/wallet',
|
||||||
},
|
},
|
||||||
|
|
||||||
rateBitPay: {
|
rateApp: {
|
||||||
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=1149581638&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
bitpay: {
|
||||||
android: 'https://play.google.com/store/apps/details?id=com.bitpay.wallet',
|
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=1149581638&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
||||||
wp: ''
|
android: 'https://play.google.com/store/apps/details?id=com.bitpay.wallet',
|
||||||
},
|
wp: ''
|
||||||
|
},
|
||||||
rateCopay: {
|
copay: {
|
||||||
ios: 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=951330296&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8',
|
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',
|
android: 'https://play.google.com/store/apps/details?id=com.bitpay.copay',
|
||||||
wp: ''
|
wp: ''
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// wallet default config
|
// wallet default config
|
||||||
wallet: {
|
wallet: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue