add abuse file viewer

This commit is contained in:
2020-07-16 17:24:03 +02:00
parent ea2e6fd9c7
commit 615327083e
5 changed files with 55 additions and 1 deletions

View File

@@ -102,6 +102,10 @@ Viewer.prototype.setFile = function(file) {
}
if (
file.abuse_type !== ""
) {
new AbuseViewer(this,file).render(this.divFilepreview)
}else if (
file.mime_type.startsWith("image")
) {
new ImageViewer(this, file).render(this.divFilepreview)