fix: remove noop arrow functions in player
This commit is contained in:
@@ -17,7 +17,9 @@ const loadVideo = (url: string): void => {
|
||||
state.video.src = url;
|
||||
state.video.load();
|
||||
state.pendingSeekTime = prevTime;
|
||||
if (wasPlaying) state.video.play().catch(() => {});
|
||||
if (wasPlaying) {
|
||||
state.video.play().catch(() => undefined);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user