Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Not working in Chrome extension #92

Open
thdoan opened this issue Dec 17, 2016 · 0 comments
Open

Not working in Chrome extension #92

thdoan opened this issue Dec 17, 2016 · 0 comments

Comments

@thdoan
Copy link

thdoan commented Dec 17, 2016

I tried to use the Tumblr example given on the homepage from the Options page of a Chrome extension:

// Handle Connect button
connectButton.addEventListener('click', function() {
  // Initialize with your OAuth.io app public key
  OAuth.initialize('Public key');
  OAuth.popup('tumblr', function(error, success) {
    console.log('error', error);
    console.log('success', success);
  });
});

After clicking on the button, I get the popup window, but it closes immediately with this error:

Error: The popup was closed at oauth.js:390

Maybe it doesn't like the `chrome-extension:' protocol?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant