fix: vue-plyr audio tag

Co-authored-by: mappi <mappi-pr@github.com>
This commit is contained in:
mappi 2023-06-02 16:31:25 +09:00 committed by ThatOneCalculator
parent 96ff1e5e55
commit d94c276a8c

View File

@ -381,6 +381,8 @@ const currentClipPage = inject<Ref<misskey.entities.Clip> | null>(
function onContextmenu(ev: MouseEvent): void {
const isLink = (el: HTMLElement) => {
if (el.tagName === "A") return true;
// The Audio element's context menu is the browser default, such as for selecting playback speed.
if (el.tagName === 'AUDIO') return true;
if (el.parentElement) {
return isLink(el.parentElement);
}