This is a polyfill library for HTMLAnchorElement.origin.
- Detect if browsers have support for
HTMLAnchorElement.originand add it - Compatible with IE8 and above
$ npm install anchor-origin-polyfill --saveBabel and ES2015+:
import 'anchor-origin-polyfill';For ES5:
require('anchor-origin-polyfill');Or copy the index.js file to your project, and add a script tag in your html:
<script src="index.js"></script>