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.
Currently event channels are not in then-chrome.
So I can not write:
It gets error:
I need to write:
that looks less consistent.
It would be nice if event channels (like
alarms.onAlarmand etc) will be proxied tothenChromeobject.