Not working in Chrome extension
thdoan opened this issue · 0 comments
thdoan commented
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?