Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

gmail.observe .on(action, callback) not working? #16

Closed
skaern opened this issue Dec 11, 2013 · 2 comments
Closed

gmail.observe .on(action, callback) not working? #16

skaern opened this issue Dec 11, 2013 · 2 comments
Labels

Comments

@skaern
Copy link

skaern commented Dec 11, 2013

I have put together some code for using gmail.js as part of a chrome extension. It all seems to work just fine, however none of the gmail.observe functions seem to do anything. I have tried entering them into the console just as you have outlined in the readme.

Example:

gmail.observe.on("star",function() {
   console.log("it worked"); 
} );

When I then star an email, nothing happens. Am I using this wrong or is it a bug?

@KartikTalwar
Copy link
Owner

@skaern its a bug. Thanks for noticing it. Fixing now

@KartikTalwar
Copy link
Owner

The observe methods should work now

gmail.observe.on("star", function(id, url, body) {
  console.log("id:", id);
  console.log("url:", url);
  console.log('body', body);
})

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

No branches or pull requests

2 participants