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