From e5f56f8210983b81f9d67bda52ee9bacd6b40b43 Mon Sep 17 00:00:00 2001 From: Sam Carton Date: Sat, 27 Jul 2024 18:20:18 +0800 Subject: [PATCH] fix --- src/components/VideoPlayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/VideoPlayer.tsx b/src/components/VideoPlayer.tsx index 02d38b0..23a5c41 100644 --- a/src/components/VideoPlayer.tsx +++ b/src/components/VideoPlayer.tsx @@ -4,7 +4,7 @@ import classes from "./VideoPlayer.module.css"; const replaceSpeedHistory = (speed: number | string) => { if ("URLSearchParams" in window) { - const url = new URL(window.location); + const url = new URL(window.location as unknown as string); url.searchParams.set("s", speed.toString()); history.replaceState(null, "", url); }