Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samcarton committed Jul 27, 2024
1 parent 975be70 commit e5f56f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e5f56f8

Please sign in to comment.