mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
Properly escape preview file paths on Windows
This commit is contained in:
parent
255f3be62a
commit
6b2546c71f
1 changed files with 3 additions and 1 deletions
|
@ -183,7 +183,9 @@ export class AttachmentItem extends Component {
|
|||
<div
|
||||
draggable={false}
|
||||
className="file-thumbnail-preview"
|
||||
style={{ background: `url('file://${filePreviewPath}') 0% 1% / cover` }}
|
||||
style={{
|
||||
background: `url('file://${filePreviewPath.replace(/\\/g, '\\\\')}') 0% 1% / cover`,
|
||||
}}
|
||||
/>
|
||||
) : null}
|
||||
<div className="inner">
|
||||
|
|
Loading…
Reference in a new issue