title: How to show PDF in a new tab of IE without downloading it
body: <p>Seems IE won't allow to open blobs directly. You have to use msSaveOrOpenBlob. But is there any way to convert it somehowe then. I do need to show PDF into a new tab of IE without downloading it or at least user should not interact and don't see it's being downloaded into e.g. system temp folder. Safai opens it in same window instead of a new tab but main problem is IE. The main idea to make all browsers work similar and open it in new tab for preview.</p>
  
  <pre><code>let blob = new Blob([response], {
      type: 'application/pdf'
  });
  
  if (window.navigator &amp;&amp; window.navigator.msSaveOrOpenBlob) {//IE
      window.navigator.msSaveOrOpenBlob(response, "TheDocumentToShow.pdf");
  } else {
      var fileURL = URL.createObjectURL(response);
      if (navigator.userAgent.indexOf("Chrome") != -1 || navigator.userAgent.indexOf("Firefox") != -1){
          let win = window.open(fileURL, '_blank');                        
      } else { //Safari &amp; Opera iOS
          window.location.href = fileURL;
      }
  }
  </code></pre>