Skip to content

Commit

Permalink
#16 Скипать платежи на мобильных
Browse files Browse the repository at this point in the history
  • Loading branch information
Syperia committed Sep 14, 2015
1 parent 0028648 commit 649a8af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion www/app/chats/randomController.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ angular.module("angControllers")
membership.getLevel().then(function(level) {
externalChat.level = level;
}, function notActive() {
routing.goto('activation');
if (RAN_AS_APP) {
//skip in-site payments for iOS/Android app
externalChat.level = 0;
}
else {
routing.goto('activation');
}
});

$scope.showHelpText = false;
Expand Down
2 changes: 1 addition & 1 deletion www/app/user/membership.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

apiRequest.send('GET', '/membership')
.then(function(response) {
ensureUserNeedsToRegister(response.data);
ensureUserNeedsToRegister(response);
if (response.active)
deferred.resolve(response.score);
else
Expand Down

0 comments on commit 649a8af

Please sign in to comment.