Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0)
- {
- $('*').each(function()
- {
- if( $(this).is('img[src$=".svg"]') )
- {
- $(this).attr('src',$(this).attr('src').replace('.svg','.png'));
- }
- else if( $(this).css('background-image').indexOf('.svg') > -1 )
- {
- $(this).css('background-image', $(this).css('background-image').replace('.svg','.png'));
- }
- });
- }
Add Comment
Please, Sign In to add comment