Skip to content

Instantly share code, notes, and snippets.

@chickenfoot88
Created August 25, 2017 12:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save chickenfoot88/09e6447b4ad387e305469281bc6c1d18 to your computer and use it in GitHub Desktop.
// SVG Fallback
if (!Modernizr.svg) {
$('img[src*="svg"]').attr(src, function() {
return $(this).attr('src').replace('.svg', '.png');
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment