customizr icon indicating copy to clipboard operation
customizr copied to clipboard

Feature checks detected within comments and strings

Open mindrones opened this issue 10 years ago • 0 comments

customizr (used via gulp-modernizr) detects feature checks within comments. Is this the intended behavior? Thanks!

Example 1

//if (Modernizr.getusermedia){
//    ...
//}

=> <html class="js getusermedia">

Example 2

console.log('Modernizr.audio'); => <html class="js audio">

mindrones avatar Feb 18 '15 12:02 mindrones