
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@ethvault/iframe-provider-polyfill
Advanced tools
Polyfill web3/ethereum with a provider that uses the parent window when the site is embedded in an iframe
This is a drop in script that overrides web3 to point at the parent window when the page is embedded in an iframe. This makes the dapp instantly compatible with Ethvault if it works with MetaMask.
This polyfill is meant for browser contexts only. The import is no-op in node contexts.
Install the dependency
npm i @ethvault/iframe-provider-polyfill
or with yarn:
yarn add @ethvault/iframe-provider-polyfill
Then import it into your index.js
import '@ethvault/iframe-provider-polyfill';
Or use a CDN like unpkg. Use subresource integrity, to prevent security vulnerabilities.
(v0.1.5)
<script src="https://unpkg.com/@ethvault/iframe-provider-polyfill@0.1.5/dist/index.js" integrity="sha384-qx1eG3ocmrXxXBwEL+qnP7je980Depwy/J7keRHVnqfEFVXHJ0ruzYIsUX767NEH" crossorigin="anonymous"></script>
FAQs
Polyfill web3/ethereum with a provider that uses the parent window when the site is embedded in an iframe
We found that @ethvault/iframe-provider-polyfill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.