title: Function not working in chrome extension popup
body: <p>When I'm testing my code in the browser everything works fine and text from the clip is being pasted inside search box but when I load the code to chrome function doesn't work . Any idea why lack of permission? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>document.querySelector('.pasteBtn').addEventListener('click', pasteFromClip);
  
  function pasteFromClip(){
      result = navigator.clipboard.readText().then(
      clipText =&gt; document.getElementById('Search').value = clipText);
    console.log('Clicked')
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input id ="Search" type="text" name="Search" value = '' placeholder="search..."&gt;&lt;br&gt;
  &lt;input type="button" value="From Clip" class="pasteBtn"&gt; </code></pre>
  </div>
  </div>
  </p>