ソースを参照

fix: small issue with ViewYoutubeVideo modal

Kristian Vos 2 年 前
コミット
64b845f631
1 ファイル変更1 行追加1 行削除
  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");