aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-09-13 15:41:13 +0200
committerGitHub <noreply@github.com>2022-09-13 15:41:13 +0200
commit7e6dffd38cf2730463d93b990a33ebff8dd9cb3d (patch)
tree83962ec8df0e3bfa9e8bd85ca87ea832c8a8b86e /apps/files_sharing
parent91040283b131a064dd5d97a804c68c88fe08b673 (diff)
parentd8ff71292f70b0d461235d34e5a5d963aab8aef8 (diff)
downloadnextcloud-server-7e6dffd38cf2730463d93b990a33ebff8dd9cb3d.tar.gz
nextcloud-server-7e6dffd38cf2730463d93b990a33ebff8dd9cb3d.zip
Merge pull request #34051 from nextcloud/fix/34027/play-audio
fix: play single audio shares with the viewer
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) {