Fix pdf viewer in VFS mode

This commit is contained in:
Benoit Martins 2023-08-16 10:34:26 +02:00
parent b320ff61fe
commit baabde7e20

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()
}