refactor: strip debug noise to reduce bundle

This commit is contained in:
Mert Uyanık
2025-10-29 09:06:29 +03:00
parent a00cfe2249
commit 60adb36721
7 changed files with 51 additions and 95 deletions
+3 -1
View File
@@ -126,7 +126,9 @@ export const PlayerProvider: React.FC<PlayerProviderProps> = ({
try {
await videoRef.current?.requestPictureInPicture()
} catch (error) {
console.error('PIP error:', error)
if (error instanceof Error) {
setVideoState((prev) => ({ ...prev, error }))
}
}
} else {
await document.exitPictureInPicture()