Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Show a download link for IPFS Companion when window.ipfs is not detected.

License

Notifications You must be signed in to change notification settings

ipfs-inactive/window.ipfs-is-required

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

This library has been deprecated and replaced with more flexible ipfs-provider.

This library will not be maintained.


window.ipfs-is-required

NPM JavaScript Style Guide

Prompt user to install IPFS Companion if window.ipfs is 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.

Usage

You can just add a script tag to your HTML file:

<script src='https://unpkg.com/window.ipfs-is-required/index.js' />

Or:

import ipfsIsRequired from 'window.ipfs-is-required'

ipfsIsRequired()

License

MIT © Henrique Dias

About

Show a download link for IPFS Companion when window.ipfs is not detected.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published