mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
fix: play single audio shares with the viewer
Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
parent
91040283b1
commit
d8ff71292f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue