0.0.2 • Published 4 years ago

anchor-origin-polyfill v0.0.2

Weekly downloads
25
License
MIT
Repository
github
Last release
4 years ago

HTMLAnchorElement.origin Polyfill

This is a polyfill library for HTMLAnchorElement.origin.

Features

  • Detect if browsers have support for HTMLAnchorElement.origin and add it
  • Compatible with IE8 and above

Installation

$ npm install anchor-origin-polyfill --save

Babel 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>
0.0.2

4 years ago

0.0.1

4 years ago