1.1.0 • Published 8 years ago

add-ie-classname v1.1.0

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
8 years ago

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

License

MIT

1.1.0

8 years ago

1.0.0

8 years ago