title: Open an .ics file via JavaScript / Typescript
body: <p>I have a downloaded ICS file via Angular2 on a desktop machine. I am trying to automatically open this file, at the moment the behavior i am seeing is that the file just downloads - it can be then opened. However, I would like to automatically invoke the default Mail client.</p>
  
  <p>Code:</p>
  
  <pre><code>openICS(data: Response) {
      let payload = data.text();
      let blob = new Blob([payload], { type: 'text/calendar' });
      let url = window.URL.createObjectURL(blob);
      window.open(url, '_blank');
     }
  </code></pre>
  
  <p>Can anyone help?</p>
  
  <p>Cheers</p>
  
  <p>KH</p>