Browse Source

fix: small issue with ViewYoutubeVideo modal

Kristian Vos 2 năm trước cách đây
mục cha
commit
64b845f631
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      frontend/src/components/modals/ViewYoutubeVideo.vue

+ 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");