Skip to content

Commit

Permalink
chore: some
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed Oct 14, 2024
1 parent c4d55d8 commit a073d86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ const App: React.FC<IAppProps> = (props) => {
{ signal: abortController.signal }
);

setIsSmallScreen(window.innerWidth <= SMALL_SCREEN_WIDTH);

globalEvent.on('user_tips', ({ type, message: _message }) => messageApi[type](_message), {
signal: abortController.signal
});
Expand Down

0 comments on commit a073d86

Please sign in to comment.