Created
September 10, 2014 18:35
-
-
Save DWboutin/7f8a555483086f4f8b4d to your computer and use it in GitHub Desktop.
SVG PNG Fallback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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