提交 13c6d254 编写于 作者: T 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
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册