title: Chrome Extension: Javascript not working in chrome.window.create panel
body: <p>I have an external app which I'm trying to load into a <code>chrome.window</code> <code>panel</code>. Kind of like Google Hangouts Chrome extension. </p>
  
  <p>Problem is that the <code>panel</code> doesn't run any of the javascript. If I change the type of the chrome.window to <code>popup</code>everything works fine. </p>
  
  <p>What could be the problem?</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here is the code I run in my background.js</p>
  
  <pre><code>chrome.windows.create({url: "https://myapp.com", type: 'panel'});
  </code></pre>
  
  <p>If I change this to:</p>
  
  <pre><code>chrome.windows.create({url: "https://myapp.com", type: 'popup'});
  </code></pre>
  
  <p>The javascript located at <a href="https://myapp.com" rel="nofollow">https://myapp.com</a> works great but not when the <code>type</code> is set to <code>panel</code>.</p>
  
  <p>And here is the code I'm running on mayapp.com:</p>
  
  <pre><code>&lt;script src="//code.jquery.com/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready( function() {
     alert('Running jQuery...');
  });
  &lt;/script&gt;
  </code></pre>