title: Chrome Extension: Download
body: <p>My last and final question. I cannot seem to use the .downloads function in the extension. I get the error</p>
  
  <p><strong>Cannot read property 'download' of undefined</strong> </p>
  
  <p>Beware I removed some of the code so it can fit here
  My code is</p>
  
  <pre><code>var contentInput = document.createElement("div")
  contentInput.innerHTML = '&lt;div style="position:relative; width: 145px;height: 30px;right: 0px;left: 14px;padding-top: 0px;top: 0px;"&gt;&lt;div class="btn-primary btn-medium" style="position: absolute;left: 0px;" draggable="true"&gt;Download .OBJ&lt;/div&gt;&lt;p style="position:relative; top: 33px; font-size:15px"&gt;Click to download the OBJ version of this asset.&lt;/p&gt; &lt;/div&gt;'
  contentInput = contentInput.children[0].children[0]
  
  localStorage.setItem("OBJURL", jsonObject.Url); //It's saved!
  });
  
  var objurl = localStorage.getItem("OBJURL");
  SendRequest(objurl, function (objfinal) {
  
  });
      chrome.downloads.download({url:objurl,filename:"wat23333.obj",conflictAction:"overwrite"})
      chrome.extension.sendRequest({
          action: "EditContent",
          type: assetType,
          name: assetName, 
          content: contentData
      })
  
  }
  </code></pre>
  
  <p>Manifest file</p>
  
  <p>Permissions</p>
  
  <pre><code>"permissions": [
      "http://*.roblox.com/*",
      "http://*.rbxcdn.com/*",
      "downloads",
      "downloads.open"
  ],
  </code></pre>