Using the new preview route to show the attachment in webui

This commit is contained in:
Eike Kettner
2020-02-08 18:01:39 +01:00
parent 8908ad2561
commit 533396d386
2 changed files with 6 additions and 6 deletions

View File

@ -1202,7 +1202,9 @@ renderAttachmentView model pos attach =
, ( "invisible hidden", isAttachMetaOpen model attach.id )
]
]
[ embed [ src fileUrl, type_ attach.contentType ]
[ iframe
[ src (fileUrl ++ "/view")
]
[]
]
, div