title: Background Js undefined Chrome Extension
body: <pre><code>console.log(chrome.runtime.sendMessage({from:&quot;script2&quot;,message:&quot;hello!&quot;}));
  </code></pre>
  <p><strong>Mean While I am trying to send the message from background script to content script which is not working</strong></p>
  <p><a href="https://i.stack.imgur.com/ERgJB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ERgJB.png" alt="this is the picture that throws me error for every code I use throws me &quot;undefined&quot; message" /></a></p>