From a72d0d3f2e7ec1caeef57838768afd165f2f7c03 Mon Sep 17 00:00:00 2001 From: Anastasiia Bakai Date: Mon, 10 Jun 2024 14:15:39 +0300 Subject: [PATCH] video improvements --- src/App.vue | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index ef47829..56053c9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -135,12 +135,13 @@

Look at the video and re-order words according to numbers.

-
@@ -353,13 +354,24 @@ const contolvideo = () => { } } -onMounted( () => { +onMounted( async () => { document.addEventListener('contextmenu', e => { if(e.target.nodeName === 'VIDEO') { e.preventDefault(); } }); + + watch(datavideo, value => { + if(value) { + setTimeout( () => { + URL.revokeObjectURL(value); + }, 1) + + } + }) + }) +