I've looked at other global variable questions on Chrome Extension with manifest ver 2, but found nothing.
Assume I have 2 files:
// content.js
var myVariable = myVariable(someDiv);
var myVarWithGlobe = VarWithGlobe.fromVariable(myVariable);
and
// VarWithGlobe.js
var withGlobe = withGlobe || { };
withGlobe.WithGlobe = (function(global) {
var myLocalVar = global.myVariable;
....
WithGlobe.fromVariable = WithGlobe;
both of them are added to web_accessible_resources, content_scripts but I can't access global.myVariable in second file since it is undefined.
How can I get it if I'm not allowed to change VarWithGlobe.js?