fix display comment avatars issue in IE 11

This commit is contained in:
Gokhan Apaydin 2019-01-30 21:14:42 +00:00 committed by Tim Zallmann
parent 870a18e885
commit 74dc0c1866
2 changed files with 7 additions and 1 deletions

View File

@ -68,7 +68,8 @@ export default {
sanitizedSource() {
let baseSrc = this.imgSrc === '' || this.imgSrc === null ? defaultAvatarUrl : this.imgSrc;
// Only adds the width to the URL if its not a base64 data image
if (!baseSrc.startsWith('data:') && !baseSrc.includes('?')) baseSrc += `?width=${this.size}`;
if (!(baseSrc.indexOf('data:') === 0) && !baseSrc.includes('?'))
baseSrc += `?width=${this.size}`;
return baseSrc;
},
resultantSrcAttribute() {

View File

@ -0,0 +1,5 @@
---
title: fix display comment avatars issue in IE 11
merge_request: 24777
author: Gokhan Apaydin
type: fixed