Skip to content

Commit

Permalink
fix: fix demo build error
Browse files Browse the repository at this point in the history
  • Loading branch information
imtaotao committed Sep 14, 2024
1 parent e9e7bdd commit bd35ff7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/src/components/danmu/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export const Container = memo(
onClick={() => {
if (!document.fullscreenElement) {
if (ref.current) {
manager.each((dm) => dm.destroy());
manager.each((dm) => {
dm.destroy();
});
ref.current.requestFullscreen();
}
} else {
Expand Down

0 comments on commit bd35ff7

Please sign in to comment.