title: Download File in JS
body: <p>i'm trying to download an <code>xlsx</code> file in <code>aura</code> component controller. This is my code, but it's not working:</p>
  <pre><code>var data = response.getReturnValue();
  var blob = new Blob([data], { type : 'text/plain' });
  
  console.log(&quot;jsonBlob&quot;, blob);
  
  var link = window.URL.createObjectURL(blob);
  window.location = link;
  </code></pre>