Handle error when the device id mismatch
This commit is contained in:
parent
9570725da1
commit
ca7ec8e392
3 changed files with 18 additions and 9 deletions
|
|
@ -515,10 +515,10 @@ angular
|
|||
// Try to open local profile
|
||||
profileService.loadAndBindProfile(function(err) {
|
||||
if (err) {
|
||||
if (err.message.match('NOPROFILE')) {
|
||||
if (err.message && err.message.match('NOPROFILE')) {
|
||||
$log.debug('No profile... redirecting');
|
||||
$state.transitionTo('splash');
|
||||
} else if (err.message.match('NONAGREEDDISCLAIMER')) {
|
||||
} else if (err.message && err.message.match('NONAGREEDDISCLAIMER')) {
|
||||
$log.debug('Display disclaimer... redirecting');
|
||||
$state.transitionTo('disclaimer');
|
||||
} else {
|
||||
|
|
@ -545,4 +545,4 @@ angular
|
|||
}, 50);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue