@awea/outdatedbrowser
v1.0.0
Published
A small utility to identify old browsers and toggle a modal
Downloads
3
Readme
Outdated Browser
A small utility to identify old browsers and toggle a modal.
This repository is a copy of burocratik/outdated-browser adapted to works with webpack without extra configuration (exemple: exports-loader).
Installation
npm install @awea/outdatedbrowser
or
yarn add @awea/outdatedbrowser
Usage example
<div id="outdated">
<a" href="http://outdatedbrowser.com/en" target="_blank">Mettre à jour maintenant</a>
</div>
import outdatedBrowser from '@awea/outdatedbrowser'
let $outdated = document.querySelector('#outdated')
outdatedBrowser($outdated, 'Edge')