then-chrome icon indicating copy to clipboard operation
then-chrome copied to clipboard

Proxy event channels to thenChrome also (for consistency)

Open vitalets opened this issue 7 years ago • 0 comments

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.

vitalets avatar Mar 01 '17 13:03 vitalets