I have fixed a bug, please apply
-
Hello, I use the plugin in a project and have fixed a bug in your plugin for it.
File: “svg-support/js/svgs-inline.js“.
Line 11 is missing a check if the SRC attribute is present at all.
Fix:if ( typeof jQuery(this).attr('src') !== typeof undefined && jQuery(this).attr('src') !== false) { // Pick only those with the extension we want if ( jQuery(this).attr('src').match(/\.(svg)/) ) { // Add our class name if ( !jQuery(this).hasClass(cssTarget.ForceInlineSVG) ) { jQuery(this).addClass(cssTarget.ForceInlineSVG); } } }
Best regards
Chris
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘I have fixed a bug, please apply’ is closed to new replies.