From 4a3e2e19d8df24a42040ef08705981fc0519b35f Mon Sep 17 00:00:00 2001 From: mkelvers Date: Thu, 28 May 2026 11:28:36 +0200 Subject: [PATCH] chore: format player storage and timeline --- static/player/storage.ts | 2 +- static/player/timeline.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/static/player/storage.ts b/static/player/storage.ts index 06854d4..672d1f3 100644 --- a/static/player/storage.ts +++ b/static/player/storage.ts @@ -1,4 +1,4 @@ -export type StorageLike = Pick; +export type StorageLike = Pick; const getLocalStorage = (): StorageLike | null => { try { diff --git a/static/player/timeline.ts b/static/player/timeline.ts index 79ac2c9..3f2872c 100644 --- a/static/player/timeline.ts +++ b/static/player/timeline.ts @@ -1,6 +1,6 @@ -import type { TimelineBounds } from './types'; -import { state } from './state'; -import { formatTime } from './controls'; +import type { TimelineBounds } from "./types"; +import { state } from "./state"; +import { formatTime } from "./controls"; // cached to avoid recalc on every timeupdate let cachedBounds: TimelineBounds = { start: 0, end: 0, duration: 0 }; @@ -124,11 +124,11 @@ export const updateTimeline = (currentTime: number): void => { const b = getBounds(); if (b.duration <= 0) { - progress.style.width = '0%'; - buffered.style.width = '0%'; - scrubber.style.left = '0%'; - timeDisplay.textContent = '00:00'; - durationDisplay.textContent = '00:00'; + progress.style.width = "0%"; + buffered.style.width = "0%"; + scrubber.style.left = "0%"; + timeDisplay.textContent = "00:00"; + durationDisplay.textContent = "00:00"; return; }