Skip to content

Commit

Permalink
Added auth console error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jvenberg committed Aug 26, 2019
1 parent cd6bb8b commit 31658d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function Auth(options) {
this.getNewAccessToken = function(callback) {
chrome.identity.launchWebAuthFlow({'url': this.url, 'interactive': true}, function (redirectedTo) {
if (chrome.runtime.lastError) {
console.log(chrome.runtime.lastError.message);
callback(null);
} else {
let url = new URL(redirectedTo.replace("#", "?"));
Expand Down

0 comments on commit 31658d6

Please sign in to comment.