|
|
@ -366,7 +366,7 @@ const NewEmail = ({ ...props }) => {
|
|
|
|
resolve(e.target.result)
|
|
|
|
resolve(e.target.result)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var win = window.open('', '_blank')
|
|
|
|
var win = window.open('', file.uid, 'width=1000,height=800,left=20,top=20')
|
|
|
|
win.document.body.style.margin = '0'
|
|
|
|
win.document.body.style.margin = '0'
|
|
|
|
if (file.type.startsWith('image/')) {
|
|
|
|
if (file.type.startsWith('image/')) {
|
|
|
|
win.document.write("<img src='" + e.target.result + '\' style="max-width: 100%;" />')
|
|
|
|
win.document.write("<img src='" + e.target.result + '\' style="max-width: 100%;" />')
|
|
|
|