gulp-inject-svg icon indicating copy to clipboard operation
gulp-inject-svg copied to clipboard

fixing attr detection

Open chrisathook opened this issue 6 years ago • 1 comments

cheerio's attr function returns a empty string if the attr exists and undefined if it does not. The If statement for this wasn't working so I added typeof to determine if its a string.

if (typeof el.attr('data-skip-inject-svg') === 'string') {

chrisathook avatar Jul 23 '18 14:07 chrisathook