1.1.0 • Published 10 years ago
add-ie-classname v1.1.0
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