Skip to content

🎥 Make videos programmatically with React

Update video-fragment.ts

Jonny Burger74a9532d50b2
diff --git a/packages/core/src/video/video-fragment.ts b/packages/core/src/video/video-fragment.ts
index 44165bdba6..3167f62250 100644
--- a/packages/core/src/video/video-fragment.ts
+++ b/packages/core/src/video/video-fragment.ts
@@ -8,7 +8,7 @@ const isSubsetOfDuration = (
prevStartFrom: number,
newStartFrom: number,
prevDuration: number,
- newDuration: number
+ newDuration: number,
) => {
return (
prevStartFrom <= newStartFrom &&
@@ -86,8 +86,8 @@ export const appendVideoFragment = ({
new URL(
actualSrc,
(typeof window === 'undefined' ? null : window.location.href) ??
- 'http://localhost:3000'
- ).hash
+ 'http://localhost:3000',
+ ).hash,
);
if (existingHash) {