[FIX] Custom Emojis PNGs on IE11 (#19519)

pull/19511/head
Martin Schoeler 5 years ago committed by GitHub
parent 2dd69f7b93
commit c5a8223f61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/emoji-custom/server/startup/emoji-custom.js

@ -104,6 +104,8 @@ Meteor.startup(function() {
}
if (/^svg$/i.test(params.emoji.split('.').pop())) {
res.setHeader('Content-Type', 'image/svg+xml');
} else if (/^png$/i.test(params.emoji.split('.').pop())) {
res.setHeader('Content-Type', 'image/png');
} else {
res.setHeader('Content-Type', 'image/jpeg');
}

Loading…
Cancel
Save