extension-link-enabler

Enable links on your browser plugin, today!

Usage no npm install needed!

<script type="module">
  import extensionLinkEnabler from 'https://cdn.skypack.dev/extension-link-enabler';
</script>

README

Extension-Link-Enabler

Enable links in your browser plugin, today! Compatible with most modern browsers.

Usage

For React Components

const linker = require('extension-link-enabler')

Component.prototype.componentDidMount = function () {
  var node = findDOMNode(this)
  linker.setupListener(node)
}

Component.prototype.componentWillUnmount = function () {
  var node = findDOMNode(this)
  linker.teardownListener(node)
}