Fixup initial subscription handling when not yet registered
This commit is contained in:
@@ -54,8 +54,8 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
// NOTE: this function is exported and called from the appstore.js
|
||||
$scope.updateSubscriptionStatus = function () {
|
||||
Client.getSubscription(function (error, subscription) {
|
||||
if (error && error.statusCode === 412) return; // ignore if not yet registered
|
||||
if (error && error.statusCode === 402) return; // ignore if not yet registered
|
||||
if (error && error.statusCode === 412) return; // not yet registered
|
||||
if (error && error.statusCode === 402) return; // invalid appstore token
|
||||
if (error) return console.error(error);
|
||||
|
||||
$scope.subscription = subscription;
|
||||
|
||||
Reference in New Issue
Block a user