Przeglądaj źródła

fix: small issue with ViewYoutubeVideo modal

Kristian Vos 2 lat temu
rodzic
commit
64b845f631

+ 1 - 1
frontend/src/components/modals/ViewYoutubeVideo.vue

@@ -144,7 +144,7 @@ const toggleMute = () => {
 
 const drawCanvas = () => {
 	if (!loaded.value) return;
-	const canvasElement = durationCanvas;
+	const canvasElement = durationCanvas.value;
 	if (!canvasElement) return;
 	const ctx = canvasElement.getContext("2d");