I am facing to problem with method new URL(\'address\') in IE.
I have this code:
var href = location.href;
var hrefParams = new URL(href);
var api =
Here's another polyfill specifically for the URL api, intended to work exactly as it does in modern browsers and only run if needed. This way you don't need to use a separate function that will be obsolete once you decide to drop support for IE.
Gist Page: https://gist.github.com/RyanG26/def0a520ed43c6c465d9a6518161bc7c