From b8fdf3efeb92e32938ad71df7e8575fc2f21cd20 Mon Sep 17 00:00:00 2001 From: Tyrritt <5675742+Tyrritt@users.noreply.github.com> Date: Thu, 26 Jan 2023 18:31:05 +0100 Subject: [PATCH] Fix variable usage --- src/components/WatchVideo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index ea7e48e7..107a1d71 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -345,7 +345,7 @@ export default { !target.innerText.match(/(?:[\d]{1,2}:)?(?:[\d]{1,2}):(?:[\d]{1,2})/) ) return; - const time = parseInt(event.target.getAttribute("href").match(/(?<=t=)\d+/)[0]); + const time = parseInt(target.getAttribute("href").match(/(?<=t=)\d+/)[0]); this.navigate(time); event.preventDefault(); });