mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
fix(cid): Remove src="cid:" when we don't have the source
This commit is contained in:
parent
e9cda3ee7e
commit
ac30c25696
1 changed files with 4 additions and 0 deletions
|
@ -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: ->
|
||||
|
|
Loading…
Reference in a new issue