Hello everyone,
I am new to developing Firefox addons and already on a rather dead end, so please bear with me. My main problem is that, from the main.js, I want to make function calls to a given tab and also receive an answer within the same function. So in my addon, it would look something like:
function getHTML(tab) {
// access the tab and get the response
return html;
}
However, with the whole port.on(“bla”, …) stuff and page mods bein attached and re-attached, I have no idea if there is a convenient way of doing this. I’m not even sure what to search for =/
Any help is greatly appreciated