summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2022-09-13 14:42:40 +0200
committerMax <max@nextcloud.com>2022-09-13 14:53:51 +0200
commitd8ff71292f70b0d461235d34e5a5d963aab8aef8 (patch)
tree83962ec8df0e3bfa9e8bd85ca87ea832c8a8b86e /apps/files_sharing
parent91040283b131a064dd5d97a804c68c88fe08b673 (diff)
downloadnextcloud-server-d8ff71292f70b0d461235d34e5a5d963aab8aef8.tar.gz
nextcloud-server-d8ff71292f70b0d461235d34e5a5d963aab8aef8.zip
fix: play single audio shares with the viewer
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index a0a57c41e9d..6c68490aef5 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -153,7 +153,7 @@ OCA.Sharing.PublicApp = {
});
if (OCA.Viewer && OCA.Viewer.mimetypes.includes(mimetype)
- && (mimetype.startsWith('image/') || mimetype.startsWith('video/'))) {
+ && (mimetype.startsWith('image/') || mimetype.startsWith('video/') || mimetype.startsWith('audio'))) {
OCA.Viewer.setRootElement('#imgframe')
OCA.Viewer.open({ path: '/' })
} else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {