Fix pdf viewer in VFS mode

This commit is contained in:
Benoit Martins 2023-08-16 10:34:26 +02:00 committed by QuentinArguillere
parent abf2d63b5b
commit 247d3047e4

View file

@ -77,7 +77,7 @@ class MediaViewer: BackNextNavigationView, UICompositeViewDelegate, UIScrollVie
setUpImageView()
} else if contentType == "video" {
setUpPlayerContainerView()
} else if contentType == "file" {
} else if contentType == "file" || contentType == "application"{
if imageNameViewer.lowercased().components(separatedBy: ".").last == "pdf" {
displayPDF()
}