add-ie-classname
v1.1.0
Published
Adds ie and ie version class to html document
Downloads
1
Readme
Add IE className to document
Quick drop-in plugin adaptation of detectie.
Adds the following classes to the HTML classlist:
- 'js'
- When IE is detected:
- 'ie'
- 'ie' with version number
var isIE = require('add-ie-classname')();
console.log(isIE); // True if IE browser
Running Tests client side
make sure you have webpack installed globally
npm install webpack -g
compile test.js to a bundle with webpack
npm test
open test.html to view the tests in the browser