add-ie-classname
v1.1.0
Published
Adds ie and ie version class to html document
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 browserRunning Tests client side
make sure you have webpack installed globally
npm install webpack -gcompile test.js to a bundle with webpack
npm testopen test.html to view the tests in the browser
