Permalink
Browse files

Merge pull request #3 from Geal/patch-1

Don't display authorized if the user refused the OAuthorization
  • Loading branch information...
2 parents c8886a5 + 78f6e4c commit 41580121eda69e57f58d261c3cec67a657c19f30 @michielbdejong michielbdejong committed May 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/tutorial.js
View
@@ -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 4158012

Please sign in to comment.