Distinguish between not yet registered and invalid appstore token
This is to avoid throwing errors
This commit is contained in:
@@ -84,6 +84,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
// NOTE: this function is exported and called from the settings.js
|
||||
$scope.updateSubscriptionStatus = function () {
|
||||
Client.getSubscription(function (error, subscription) {
|
||||
if (error && error.statusCode === 412) return; // ignore if not yet registered
|
||||
if (error) console.error(error);
|
||||
|
||||
$scope.subscription = subscription;
|
||||
|
||||
Reference in New Issue
Block a user