|
@@ -357,6 +357,13 @@ class NCDetailViewController: UIViewController {
|
|
|
}
|
|
|
|
|
|
viewerPDF.setupPdfView(filePath: URL(fileURLWithPath: filePath), view: backgroundView)
|
|
|
+
|
|
|
+ } else {
|
|
|
+
|
|
|
+ let frame = CGRect(x: 0, y: 0, width: self.backgroundView.frame.width, height: self.backgroundView.frame.height)
|
|
|
+ let viewerDocumentWeb = NCViewerDocumentWeb.init(frame: frame, configuration: WKWebViewConfiguration())
|
|
|
+
|
|
|
+ viewerDocumentWeb.viewDocumentWebAt(metadata, view: backgroundView)
|
|
|
}
|
|
|
|
|
|
return
|