A polyfill for the URL web api.
npm install url-poly
import URL from 'url-poly'
// create a URL
const url = new URL(window.location)
When you're ready to drop support for IE, just remove the import and your code will work the same.
A polyfill for the URL web api.
npm install url-poly
import URL from 'url-poly'
// create a URL
const url = new URL(window.location)
When you're ready to drop support for IE, just remove the import and your code will work the same.
npm i url-poly
2
1.0.4
MIT
5.38 kB
4