Browse files

Don't display authorized if the user refused the OAuthorization

  • Loading branch information...
1 parent c8886a5 commit 78f6e4c386246be3bf7ad100d14277d5168805aa @Geal Geal committed May 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/tutorial.js
View
2 js/tutorial.js
@@ -46,7 +46,7 @@ var tutorial = (function() {
if(event.origin == location.protocol +'//'+ location.host) {
console.log('Received an OAuth token: ' + event.data);
localStorage.setItem('bearerToken', event.data);
- helper.setAuthorizedState(true);
+ helper.setAuthorizedState(helper.isAuthorized());
}
}, false);

0 comments on commit 78f6e4c

Please sign in to comment.