Skip to content

Commit cd0261b

Browse files
Merge pull request #302 from milejko/hotfix/prevent-to-download-file-from-audio-html-element
Hotfix/prevent to download file from audio html element
2 parents 2d148f1 + 60e22a2 commit cd0261b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CmsAdmin/Resource/web/js/tiny/plugins/lioniteimages/js/lioniteimages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949

5050
if (el.attr('data-typ') == 'audio') {
51-
var box = '<audio src="' + el.attr('href') + '" controls></audio>';
51+
var box = '<audio src="' + el.attr('href') + '" controls controlsList="nodownload noplaybackrate" oncontextmenu="return false;"></audio>';
5252
}
5353

5454
if (el.attr('data-typ') == 'video') {

0 commit comments

Comments
 (0)