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

Proxy event channels to thenChrome also (for consistency) #13

Open
vitalets opened this issue Mar 1, 2017 · 0 comments
Open

Proxy event channels to thenChrome also (for consistency) #13

vitalets opened this issue Mar 1, 2017 · 0 comments

Comments

@vitalets
Copy link
Contributor

vitalets commented Mar 1, 2017

Currently event channels are not in then-chrome.
So I can not write:

thenChrome.alarms.create('alarm');
thenChrome.alarms.onAlarm.addListener(listener);

It gets error:

Uncaught TypeError: Cannot read property 'addListener' of undefined

I need to write:

thenChrome.alarms.create('alarm');
chrome.alarms.onAlarm.addListener(listener);

that looks less consistent.

It would be nice if event channels (like alarms.onAlarm and etc) will be proxied to thenChrome object.

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

No branches or pull requests

1 participant