I been working on a firefox extension project and now I'm stuck on this,
var abc = 123;
var pageMod = require("page-mod");
pageMod.PageMod({
include: "*",
contentScriptWhen: 'ready',
contentScript: 'var newabc = 456;',
});
where abc is a global variable and newabc is a variable within the contentScript.
How do I make abc = newabc ?
Thanks!!
contentScript
to be'var newabc = 456; abc = newabc;'
? Probably a dumb suggestion, I'm just not familiar with FF extension scoping.