On Fri, Sep 11, 2009 at 12:33 PM, Colin Bleckner <[email protected]> wrote:
> chrome.extension.onConnect.addListener(function(port, name) {
> console.log(name);
> port.onMessage.addListener(MessageHandler);
> });
>
The name is a property of the port object. Change it to:
console.log(port.name);
and it should work.
See http://chromeextrasdocs.appspot.com/content_scripts.html#messaging for
more info.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---