You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor header component to handle reading finish event and visibility change
- Added ipcRenderer listener for "reading-finished" event to trigger handleFinishReading method.
- Consolidated logic in visibilitychange event to call handleFinishReading instead of duplicating fetch calls.
- Moved fetch logic into handleFinishReading method for better code organization and reusability.
0 commit comments