Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!Modernizr.svg) {
- $('img[src$=".svg"]').each(function() {
- var $this = $(this); // this = img
- $this.attr('src', $this.attr('src').replace(/svg$/, 'png'));
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement