瀏覽代碼

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