add
This commit is contained in:
parent
60c317757e
commit
83bb5bb252
|
@ -9,7 +9,7 @@ export default function FullScreen() {
|
|||
const { videoRef } = useContext(VideoPlayerContext);
|
||||
return (
|
||||
<>
|
||||
<button
|
||||
<div
|
||||
onClick={() => {
|
||||
if (document.fullscreenElement) {
|
||||
document.exitFullscreen();
|
||||
|
@ -23,7 +23,7 @@ export default function FullScreen() {
|
|||
) : (
|
||||
<ArrowsPointingOutIcon className="w-10 h-10" />
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue