1.0.0 • Published 5 years ago

@awea/outdatedbrowser v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
5 years ago

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&nbsp;à&nbsp;jour&nbsp;maintenant</a>
</div>
import outdatedBrowser from '@awea/outdatedbrowser'

let $outdated = document.querySelector('#outdated')
outdatedBrowser($outdated, 'Edge')