Commit 13c6d254 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'patch-38' into 'master'

fix display comment avatars issue in IE 11

Closes #56931

See merge request gitlab-org/gitlab-ce!24777
parents 870a18e8 74dc0c18
......@@ -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() {
......
---
title: fix display comment avatars issue in IE 11
merge_request: 24777
author: Gokhan Apaydin
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment