title: How can I display a Save As dialog in an Electron App?
body: <p>I am writing a NodeJS Electron App to be distributed on all platforms. I have a download button that I would like to pop open a Save As dialog with the file being provided from the server. Does anybody know the best way to do this?</p>
  
  <p>Here are the things I have tried that work when running the node app locally but fail after I have packaged the app with electron-packager:</p>
  
  <ul>
  <li>Setting window.location.href to the location of the file</li>
  <li>Setting the src of a hidden iframe to the location of the file</li>
  </ul>
  
  <p>When running the packaged mac app, the "did-fail-load" event is fired and prevents the Save As dialog from showing. When looking at the network requests, I can see that the file is successfully retrieved from the server. I can't seem to figure out why the "did-fail-load" event is being fired.</p>