Hi!
I am getting self.port is undefined error when working on FF plugin under JPM.
NodeJS is used.
The file.js script is under data and sends the message to the index.js, which have a panel. Self.port.emit is not working, but seem to work maybe once or several times.
myPanel.port.on(“click-link”, function(name) {
console.log(name);
});
function F()
{alert(name+“11”);
var x=name.toString();
self.port.emit(‘click-link’, x);
}