title: new URL(location.href) doesn't work in IE
body: <p>I am facing to problem with method new URL('address') in IE.</p>
  
  <p>I have this code:</p>
  
  <pre><code>var href =  location.href;
  var hrefParams = new URL(href);
  var api = hrefParams.searchParams.get("api");
  </code></pre>
  
  <p>In Firefox and Chrome it works at should and I will get the value of attribute "api".</p>
  
  <p>But in IE I am getting error on console:</p>
  
  <blockquote>
    <p>SCRIPT445: Object doesn't support this action</p>
  </blockquote>
  
  <p>Console error debugger points to the problem with line </p>
  
  <pre><code>var hrefParams = new URL(href);
  </code></pre>
  
  <p>For solving of another problem I already invoking script </p>
  
  <pre><code>&lt;script type="text/javascript" src="js/bluebird.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But it doesn't fix this problem. </p>
  
  <p>Any idea how to fix it in IE?</p>