From 1d431ecad6909ca5eb256ebeddebb3520e3d3312 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 5 Jun 2023 23:07:34 +0900 Subject: [PATCH] Add error logs for fullscreen change on the front --- front/packages/ui/src/player/state.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front/packages/ui/src/player/state.tsx b/front/packages/ui/src/player/state.tsx index 838270d3..993edca9 100644 --- a/front/packages/ui/src/player/state.tsx +++ b/front/packages/ui/src/player/state.tsx @@ -63,7 +63,9 @@ export const fullscreenAtom = atom( set(privateFullscreen, false); screen.orientation.unlock(); } - } catch {} + } catch(e) { + console.error(e); + } }, ); const privateFullscreen = atom(false);