Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

focusin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focusin

Focusin/focusout polyfill for Firefox

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

focusin

npm

Focusin/focusout polyfill for Firefox based on this gist by @nuxodin. Addresses this bug in Firefox.

Install

npm install focusin

Or, just copy focusin.min.js into your project if you don't use browserify. The minified script automatically runs the polyfill method, so all you have to do is include it.

Usage

focusin is a polyfill, so you don't need to assign it to a variable, just require it and call the polyfill method. Obviously meant for browser environments and not Node.js. If you only require the module no code will be attached to the window.

require('focusin').polyfill()

Contributing

Contributions welcome! Please read the contributing guidelines first.

License

ISC

Project template generated with module-init.

Keywords

FAQs

Package last updated on 09 Nov 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc