Comments (2)
hey @itsazzad would it be possible to get the steps you are following to reproduce it? When I try it on my browser, it works fine.
from gmail-chrome-extension-boilerplate.
Here is the code I use. The point is that it works always except in a very few random occasions. I am not sure about the occasion. Do you have any idea that how can it can get the email address but not starting the observers? Here it will get the email address and if it not match then will alert me and after that always should have starting the observers like as refresh
or http_event
but seldom its not either starting the observers because I am not getting anything in the log...
var main = function() {
gmail = new Gmail();
console.log('Hello,', gmail.get.user_email());
var acceptable_emails = [ "[email protected]", "[email protected]" ];
if (jQuery.inArray(gmail.get.user_email(), acceptable_emails) >= 0) {
} else {
alert('Sorry! Your email is not associated with this system.');
return false;
}
gmail.observe.on("refresh", function(url, body, data, xhr) {
console.log("gmail.observe.on:refresh- url:", url, 'body', body, 'data', data, 'xhr', xhr);
});
gmail.observe.on("http_event", function(params) {
console.log("gmail.observe.on:http_event- url data:", params);
});
}
refresh(main);
from gmail-chrome-extension-boilerplate.
Related Issues (10)
- .
- How do I call this from background.js? HOT 2
- License HOT 2
- Error in popups: Gmail is not defined HOT 1
- Passing messages between `content.js` and `main.js` HOT 2
- selected_emails_data() returns wrong email data when inbox type is set as anything else that default
- Communication with background script HOT 2
- jquery isn't loading HOT 4
- All files are reloaded on each user actions in Gmail HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmail-chrome-extension-boilerplate.