From 5fd8b56836595d6fa1fe2cb0d0a9c9474fc4dfdd Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Fri, 6 Nov 2015 11:40:48 -0500
Subject: Fixing broken markdown images taking up too much space. Fixed
 unnessisary expantion of markdown images not in center channel.

---
 web/react/utils/markdown.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/utils/markdown.jsx')

diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx
index 374caf6dc..ee63b8689 100644
--- a/web/react/utils/markdown.jsx
+++ b/web/react/utils/markdown.jsx
@@ -94,7 +94,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
         if (title) {
             out += ' title="' + title + '"';
         }
-        out += ' onload="window.markdownImageLoaded(this)" class="markdown-inline-img"';
+        out += ' onload="window.markdownImageLoaded(this)" onerror="window.markdownImageLoaded(this)" class="markdown-inline-img"';
         out += this.options.xhtml ? '/>' : '>';
         return out;
     }
-- 
cgit v1.2.3-1-g7c22

