Prompt user to install IPFS Companion if
window.ipfsis not available.
The IPFS Companion web extension provides a
window.ipfs object to web pages you visit. This module will detects the presence of
window.ipfs and if it isn't present, the user will be asked to install the web extension.
You can just add a script tag to your HTML file:
<script src='https://unpkg.com/window.ipfs-is-required/index.js' />
MIT © Henrique Dias