title: How to open a generated pdf in electron?
body: <p>im using Electron, i need to open a new window with a pdf generated with pdfmake.js, im trying this</p>
  
  <pre><code>    pdf = pdfMake.createPdf(docDefinition);
      pdf.getDataUrl(function(dataUrl){
          win.loadURL(dataUrl);
      });
  </code></pre>
  
  <p>this just open a new window and download the pdf</p>