fix(cid): Remove src="cid:" when we don't have the source

This commit is contained in:
Ben Gotow 2015-02-09 19:31:23 -08:00
parent e9cda3ee7e
commit ac30c25696

View file

@ -83,6 +83,10 @@ MessageItem = React.createClass
fileLink = "#{FileDownloadStore.pathForFile(file)}"
body = body.replace(cidLink, fileLink)
# Remove any remaining cid:// references - we will not display them since they'll
# throw "unknown ERR_UNKNOWN_URL_SCHEME"
body = body.replace(/src=['"]cid:[^'"]*['"]/g, '')
body
_containsQuotedText: ->