mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +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
|
<div
|
||||||
draggable={false}
|
draggable={false}
|
||||||
className="file-thumbnail-preview"
|
className="file-thumbnail-preview"
|
||||||
style={{ background: `url('file://${filePreviewPath}') 0% 1% / cover` }}
|
style={{
|
||||||
|
background: `url('file://${filePreviewPath.replace(/\\/g, '\\\\')}') 0% 1% / cover`,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<div className="inner">
|
<div className="inner">
|
||||||
|
|
Loading…
Reference in a new issue